reztilop commited on
Commit
94ea25f
·
verified ·
1 Parent(s): d97b3bf

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +5 -2
Dockerfile CHANGED
@@ -23,8 +23,11 @@ RUN apt-get update && \
23
  # Expose the necessary port
24
  EXPOSE 7860/tcp
25
 
 
 
 
26
  # Override the CMD instruction with your desired command and arguments
27
  # WARNING: FOR PROD DO NOT USE `--detailed_debug` it slows down response times, instead use the following CMD
28
- # CMD ["--port", "7860", "--config", "config.yaml"]
29
 
30
- CMD ["--port", "7860", "--config"]
 
23
  # Expose the necessary port
24
  EXPOSE 7860/tcp
25
 
26
+ # Verify that the config file exists
27
+ RUN if [ ! -f /app/config.yaml ]; then echo "config.yaml not found!" && exit 1; fi
28
+
29
  # Override the CMD instruction with your desired command and arguments
30
  # WARNING: FOR PROD DO NOT USE `--detailed_debug` it slows down response times, instead use the following CMD
31
+ # CMD ["--port", "7860", "--config", "/app/config.yaml"]
32
 
33
+ CMD ["--port", "7860", "--config", "/app/config.yaml"]