-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
23 lines (19 loc) · 913 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
FROM debian:9
WORKDIR /code
## https://docs.microsoft.com/en-us/dotnet/core/install/linux-debian
RUN apt-get update && apt-get upgrade -y
RUN apt-get install -y wget pgp curl man make
## A dd the Microsoft package signing key to your list of trusted keys and add the package repository
RUN wget -O - https://packages.microsoft.com/keys/microsoft.asc | gpg --dearmor > microsoft.asc.gpg \
&& mv microsoft.asc.gpg /etc/apt/trusted.gpg.d/ \
&& wget https://packages.microsoft.com/config/debian/9/prod.list \
&& mv prod.list /etc/apt/sources.list.d/microsoft-prod.list \
&& chown root:root /etc/apt/trusted.gpg.d/microsoft.asc.gpg \
&& chown root:root /etc/apt/sources.list.d/microsoft-prod.list
## Install the SDK
RUN apt-get update; \
apt-get install -y apt-transport-https && \
apt-get update -y && \
apt-get install -y dotnet-sdk-6.0
# Install the runtime
RUN apt-get install -y dotnet-runtime-6.0