sigyllly commited on
Commit
9e30d97
·
verified ·
1 Parent(s): 974bcb2

Update Dockerfile

Browse files
Files changed (1) hide show
  1. 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
- # Ensure the .NET SDK and csc compiler are in PATH
21
  ENV DOTNET_ROOT=/usr/share/dotnet
22
- ENV PATH=$PATH:/usr/share/dotnet
23
 
24
- # Verify the installation by checking if csc is available
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