alidenewade commited on
Commit
98164bf
·
verified ·
1 Parent(s): 32f6529

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +4 -8
Dockerfile CHANGED
@@ -11,16 +11,12 @@ COPY requirements.txt .
11
  RUN pip install --no-cache-dir -r requirements.txt && \
12
  find . -type d -name "__pycache__" -exec rm -rf {} +;
13
 
14
- # Copy the Streamlit application file and the entrypoint script into the container
15
  COPY app.py .
16
- COPY entrypoint.sh .
17
-
18
- # Give execution rights to the entrypoint script
19
- RUN chmod +x entrypoint.sh
20
 
21
  # Expose the port Streamlit runs on (default for Hugging Face Spaces is 7860)
22
  EXPOSE 7860
23
 
24
- # Define the entrypoint for the container
25
- # This will execute the entrypoint.sh script when the container starts
26
- ENTRYPOINT ["./entrypoint.sh"]
 
11
  RUN pip install --no-cache-dir -r requirements.txt && \
12
  find . -type d -name "__pycache__" -exec rm -rf {} +;
13
 
14
+ # Copy the Streamlit application file into the container
15
  COPY app.py .
 
 
 
 
16
 
17
  # Expose the port Streamlit runs on (default for Hugging Face Spaces is 7860)
18
  EXPOSE 7860
19
 
20
+ # Define the command to run the Streamlit application
21
+ # Simplified CMD command for better compatibility with Hugging Face Spaces
22
+ CMD ["streamlit", "run", "app.py", "--server.port", "7860", "--server.host", "0.0.0.0"]