sigyllly commited on
Commit
8412d29
·
verified ·
1 Parent(s): 63be5ca

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +7 -7
Dockerfile CHANGED
@@ -29,15 +29,15 @@ COPY . .
29
  # Expose the port the app runs on
30
  EXPOSE 7860
31
 
32
- # Automatically find the csc location and update the PATH, if found
33
- RUN CSC_PATH=$(find / -name csc 2>/dev/null | head -n 1) && \
34
- if [ -n "$CSC_PATH" ]; then \
35
- CSC_DIR=$(dirname $CSC_PATH); \
36
- echo "Found csc at: $CSC_PATH"; \
37
- export PATH=$CSC_DIR:$PATH; \
38
  echo "Updated PATH: $PATH"; \
39
  else \
40
- echo "csc not found!"; \
41
  fi
42
 
43
  # Command to run the Flask app
 
29
  # Expose the port the app runs on
30
  EXPOSE 7860
31
 
32
+ # Check for dotnet instead of csc
33
+ RUN DOTNET_PATH=$(find / -name dotnet 2>/dev/null | head -n 1) && \
34
+ if [ -n "$DOTNET_PATH" ]; then \
35
+ DOTNET_DIR=$(dirname $DOTNET_PATH); \
36
+ echo "Found dotnet at: $DOTNET_PATH"; \
37
+ export PATH=$DOTNET_DIR:$PATH; \
38
  echo "Updated PATH: $PATH"; \
39
  else \
40
+ echo "dotnet not found!"; \
41
  fi
42
 
43
  # Command to run the Flask app