Spaces:
Sleeping
Sleeping
Update Dockerfile
Browse files- Dockerfile +4 -4
Dockerfile
CHANGED
@@ -17,12 +17,12 @@ RUN apt-get update && apt-get install -y \
|
|
17 |
&& apt-get clean \
|
18 |
&& rm -rf /var/lib/apt/lists/*
|
19 |
|
20 |
-
#
|
21 |
ENV DOTNET_ROOT=/usr/share/dotnet
|
22 |
-
ENV PATH=$PATH:/usr/share/dotnet
|
23 |
|
24 |
-
#
|
25 |
-
RUN echo $PATH && which csc
|
26 |
|
27 |
# Install Python pip and other dependencies
|
28 |
RUN apt-get install -y python3-pip && pip3 install --no-cache-dir --upgrade -r /app/requirements.txt
|
|
|
17 |
&& apt-get clean \
|
18 |
&& rm -rf /var/lib/apt/lists/*
|
19 |
|
20 |
+
# Set the .NET environment variables
|
21 |
ENV DOTNET_ROOT=/usr/share/dotnet
|
22 |
+
ENV PATH=$PATH:/usr/share/dotnet:/usr/share/dotnet/sdk/7.0.100
|
23 |
|
24 |
+
# Check if 'dotnet --info' works and also check for 'csc'
|
25 |
+
RUN dotnet --info && ls /usr/share/dotnet/sdk/7.0.100 && echo $PATH && which csc
|
26 |
|
27 |
# Install Python pip and other dependencies
|
28 |
RUN apt-get install -y python3-pip && pip3 install --no-cache-dir --upgrade -r /app/requirements.txt
|