OptiJuegos commited on
Commit
eab0955
·
verified ·
1 Parent(s): 1fc72eb

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +8 -9
Dockerfile CHANGED
@@ -16,15 +16,14 @@ RUN apt-get update && apt-get install -y apt-transport-https curl gnupg libicu-d
16
  RUN wget http://archive.ubuntu.com/ubuntu/pool/main/o/openssl/libssl1.1_1.1.1-1ubuntu2.1~18.04.23_amd64.deb -O libssl1.1_1.1.1-1ubuntu2.1~18.04.23_amd64.deb \
17
  && dpkg -i libssl1.1_1.1.1-1ubuntu2.1~18.04.23_amd64.deb
18
 
19
- # Instala .NET SDK 5.0.17
20
- RUN curl -fsSL https://packages.microsoft.com/keys/microsoft.asc | apt-key add -
21
- RUN echo "deb [arch=amd64] https://packages.microsoft.com/ubuntu/21.04/prod/ hirsute/" >> /etc/apt/sources.list.d/microsoft-prod.list
22
- RUN apt-get update
23
- RUN apt-get install -y aspnetcore-runtime-5.0
24
-
25
- # Configura DOTNET_ROOT y PATH
26
- ENV DOTNET_ROOT=/usr/local/dotnet
27
- ENV PATH=$PATH:/usr/local/dotnet
28
 
29
  # Instala Python 3
30
  RUN apt-get update && apt-get install -y python3
 
16
  RUN wget http://archive.ubuntu.com/ubuntu/pool/main/o/openssl/libssl1.1_1.1.1-1ubuntu2.1~18.04.23_amd64.deb -O libssl1.1_1.1.1-1ubuntu2.1~18.04.23_amd64.deb \
17
  && dpkg -i libssl1.1_1.1.1-1ubuntu2.1~18.04.23_amd64.deb
18
 
19
+ # Download the .NET Runtime
20
+ RUN curl -fsSL "https://download.visualstudio.microsoft.com/download/pr/e77438f6-865f-45e0-9a52-3e4b04aa609f/024a880ed4bfbfd3b9f222fec0b6aaff/dotnet-runtime-5.0.17-linux-x64.tar.gz" -o dotnet-runtime-5.0.17-linux-x64.tar.gz
21
+
22
+ # Extract the runtime
23
+ RUN tar -xzf dotnet-runtime-5.0.17-linux-x64.tar.gz -C /usr/local
24
+
25
+ # Add the .NET Runtime to the PATH
26
+ ENV PATH="/usr/local/dotnet:$PATH"
 
27
 
28
  # Instala Python 3
29
  RUN apt-get update && apt-get install -y python3