Aryan Jain commited on
Commit
a2b0228
·
1 Parent(s): 02d8e46

change location of app file

Browse files
Files changed (2) hide show
  1. Dockerfile +5 -3
  2. app.py → src/app.py +0 -0
Dockerfile CHANGED
@@ -54,8 +54,8 @@ RUN python -m spacy download en_core_web_sm
54
  RUN mkdir -p /app/temp && chmod 777 /app/temp
55
 
56
  # Copy the source code (this layer will be rebuilt when code changes)
57
- COPY src/ /app/src/
58
- COPY app.py /app/
59
 
60
  # Expose the port Streamlit will run on
61
  EXPOSE 8501
@@ -68,4 +68,6 @@ ENV STREAMLIT_SERVER_ENABLE_CORS=false
68
  ENV STREAMLIT_SERVER_ENABLE_XSRF_PROTECTION=false
69
 
70
  # Run the Streamlit application
71
- CMD ["streamlit", "run", "app.py", "--server.port=8501", "--server.address=0.0.0.0"]
 
 
 
54
  RUN mkdir -p /app/temp && chmod 777 /app/temp
55
 
56
  # Copy the source code (this layer will be rebuilt when code changes)
57
+ COPY src/ ./src/
58
+ # COPY src/app.py /app/
59
 
60
  # Expose the port Streamlit will run on
61
  EXPOSE 8501
 
68
  ENV STREAMLIT_SERVER_ENABLE_XSRF_PROTECTION=false
69
 
70
  # Run the Streamlit application
71
+ HEALTHCHECK CMD curl --fail http://localhost:8501/_stcore/health
72
+
73
+ ENTRYPOINT ["streamlit", "run", "src/app.py", "--server.port=8501", "--server.address=0.0.0.0"]
app.py → src/app.py RENAMED
File without changes