Spaces:
Sleeping
Sleeping
Update Dockerfile
Browse files- Dockerfile +2 -4
Dockerfile
CHANGED
@@ -29,13 +29,11 @@ RUN mkdir -p /app/uploads /home/appuser/.dotnet && \
|
|
29 |
|
30 |
# Set the DOTNET_HOME environment variable
|
31 |
ENV DOTNET_HOME="/home/appuser/.dotnet"
|
32 |
-
ENV PATH="${PATH}:${DOTNET_HOME}"
|
33 |
-
|
34 |
# Add the .NET SDK tools directory to PATH
|
35 |
-
ENV PATH="${PATH}:/usr/share/dotnet"
|
36 |
|
37 |
# Ensure csc is in the PATH
|
38 |
-
RUN echo $PATH
|
39 |
|
40 |
# Copy the requirements file with the correct owner
|
41 |
COPY --chown=appuser:appuser ./requirements.txt /app/requirements.txt
|
|
|
29 |
|
30 |
# Set the DOTNET_HOME environment variable
|
31 |
ENV DOTNET_HOME="/home/appuser/.dotnet"
|
|
|
|
|
32 |
# Add the .NET SDK tools directory to PATH
|
33 |
+
ENV PATH="${PATH}:${DOTNET_HOME}:/usr/share/dotnet"
|
34 |
|
35 |
# Ensure csc is in the PATH
|
36 |
+
RUN echo $PATH && which csc
|
37 |
|
38 |
# Copy the requirements file with the correct owner
|
39 |
COPY --chown=appuser:appuser ./requirements.txt /app/requirements.txt
|