Spaces:
Running
Running
Update Dockerfile
Browse files- 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
|
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
|
25 |
-
#
|
26 |
-
|
|
|
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"]
|