-
-
Notifications
You must be signed in to change notification settings - Fork 11
/
Copy pathfsharp-service-Dockerfile
37 lines (31 loc) · 1.25 KB
/
fsharp-service-Dockerfile
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
35
36
37
# Base docker image for the FSharp containers we run in production on GCP
# FSharp installer image
# Copied from https://github.com/dotnet/dotnet-docker/blob/main/src/runtime/6.0/focal/amd64/Dockerfile
FROM amd64/buildpack-deps:jammy-curl as installer
# Retrieve .NET
RUN curl -SL --output dotnet.tar.gz https://dotnetcli.azureedge.net/dotnet/Sdk/6.0.300/dotnet-sdk-6.0.300-linux-x64.tar.gz \
&& dotnet_sha512='52d720e90cfb889a92d605d64e6d0e90b96209e1bd7eab00dab1d567017d7a5a4ff4adbc55aff4cffcea4b1bf92bb8d351859d00d8eb65059eec5e449886c938' \
&& echo "$dotnet_sha512 dotnet.tar.gz" | sha512sum -c - \
&& mkdir -p /dotnet \
&& tar -ozxf dotnet.tar.gz -C /dotnet \
&& rm dotnet.tar.gz
# Our container
FROM dark-base-service:latest
RUN sudo apt-get update \
&& DEBIAN_FRONTEND=noninteractive sudo apt-get install -y --no-install-recommends \
ca-certificates \
\
# .NET Core dependencies
libc6 \
libgcc1 \
libgssapi-krb5-2 \
libicu70 \
libssl3 \
libstdc++6 \
zlib1g \
&& sudo rm -rf /var/lib/apt/lists/*
ENV \
DOTNET_SDK_VERSION=6.0.300 \
DOTNET_RUNNING_IN_CONTAINER=true \
DOTNET_EnableDiagnostics=0
COPY --from=installer ["/dotnet", "/usr/share/dotnet"]