-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathDockerfile.libgdiplus
34 lines (29 loc) · 1.07 KB
/
Dockerfile.libgdiplus
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
FROM alpine:3.13 AS grpc-build
WORKDIR /opt
RUN apk add --update alpine-sdk autoconf libtool linux-headers cmake git && \
\
git clone -b v1.36.4 https://github.com/grpc/grpc --depth 1 --shallow-submodules && \
cd grpc && git submodule update --init --depth 1 && \
\
mkdir -p cmake/build && cd cmake/build && \
\
cmake -DCMAKE_BUILD_TYPE=RelWithDebInfo \
-DgRPC_BACKWARDS_COMPATIBILITY_MODE=ON \
-DgRPC_BUILD_TESTS=OFF \
../.. && \
\
make grpc_csharp_ext -j4 && \
\
mkdir -p /out && cp libgrpc_csharp_ext.* /out
FROM mcr.microsoft.com/dotnet/aspnet:3.1-alpine3.13
WORKDIR /app
COPY /out .
COPY --from=grpc-build /out/libgrpc_csharp_ext.so /app/libgrpc_csharp_ext.x64.so
# warning! specific implemetation for us! change the time zone into WIB
RUN apk add --no-cache tzdata && \
cp /usr/share/zoneinfo/Asia/Jakarta /etc/localtime && \
echo "Asia/Jakarta" > /etc/timezone
# install the libdgiplus
RUN echo "http://dl-cdn.alpinelinux.org/alpine/edge/testing" >> /etc/apk/repositories
RUN apk --update add libgdiplus
CMD []