1
1
# this is the dockerfile that create the ocelot build container
2
2
# build with the docker-build.sh file in this folder
3
- FROM amd64/buildpack-deps:focal-curl AS build
3
+ FROM mcr.microsoft.com/dotnet/core/sdk:3.1-bionic AS build
4
4
5
- # update to we can install wget
5
+ RUN apt install gnupg ca-certificates
6
+ RUN apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 3FA7E0328081BFF6A14DA29AA6A19B38D3D831EF
7
+ RUN echo "deb https://download.mono-project.com/repo/ubuntu stable-bionic main" | tee /etc/apt/sources.list.d/mono-official-stable.list
6
8
RUN apt update
7
-
8
- # this need to be installed like this so it doesnt block the UI
9
- RUN DEBIAN_FRONTEND="noninteractive" apt-get -y install tzdata
10
-
11
- # bunch of random things .NET and mono need
12
- RUN apt install -y wget apt-transport-https git make dirmngr gnupg apt-transport-https ca-certificates software-properties-common build-essential
13
-
14
- # install mono
15
- RUN apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 3FA7E0328081BFF6A14DA29AA6A19B38D3D831EF && apt-add-repository 'deb https://download.mono-project.com/repo/ubuntu stable-focal main' && apt install -y mono-complete
16
-
17
- # .NET Core dependencies
18
- # RUN apt-get update \
19
- # && DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends \
20
- # ca-certificates \
21
- # \
22
- # # .NET Core dependencies
23
- # libc6 \
24
- # libgcc1 \
25
- # libgssapi-krb5-2 \
26
- # libicu66 \
27
- # libssl1.1 \
28
- # libstdc++6 \
29
- # zlib1g
30
-
31
- # Versions of .NET we need
32
- RUN wget https://packages.microsoft.com/config/ubuntu/20.10/packages-microsoft-prod.deb -O packages-microsoft-prod.deb
33
- RUN dpkg -i packages-microsoft-prod.deb
34
- RUN apt-get update && apt-get install -y \
35
- dotnet-sdk-5.0 \
36
- dotnet-sdk-3.1
37
-
38
- RUN dotnet tool install --global GitVersion.Tool --version 5.5.1
39
-
40
- ENV PATH="/root/.dotnet/tools:${PATH}"
41
-
42
- # RUN dotnet gitversion
9
+ RUN apt-get -y install mono-devel
10
+
11
+ RUN wget https://packages.microsoft.com/config/ubuntu/18.04/packages-microsoft-prod.deb -O packages-microsoft-prod.deb \
12
+ && dpkg -i packages-microsoft-prod.deb \
13
+ && apt-get update; \
14
+ apt-get install -y apt-transport-https && \
15
+ apt-get update && \
16
+ apt-get install -y dotnet-sdk-5.0
0 commit comments