Spaces:
Sleeping
Sleeping
Update Dockerfile
Browse files- Dockerfile +4 -8
Dockerfile
CHANGED
|
@@ -11,8 +11,8 @@ RUN apt-get update && apt-get install -y \
|
|
| 11 |
COPY requirements.txt ./
|
| 12 |
RUN pip3 install -r requirements.txt
|
| 13 |
|
| 14 |
-
|
| 15 |
-
COPY
|
| 16 |
|
| 17 |
# Create writable .streamlit folder with proper permissions
|
| 18 |
RUN mkdir -p /app/.streamlit && chmod 755 /app/.streamlit
|
|
@@ -20,7 +20,7 @@ RUN mkdir -p /app/.streamlit && chmod 755 /app/.streamlit
|
|
| 20 |
# Add Streamlit config to disable usage stats collection
|
| 21 |
RUN echo "[browser]\ngatherUsageStats = false\n[server]\nheadless = true\nport = 8501\nenableCORS = false\nenableXsrfProtection = false\n" > /app/.streamlit/config.toml
|
| 22 |
|
| 23 |
-
# Set proper permissions for the config file
|
| 24 |
RUN chmod 644 /app/.streamlit/config.toml
|
| 25 |
|
| 26 |
# Create a non-root user for better security
|
|
@@ -38,8 +38,4 @@ EXPOSE 8501
|
|
| 38 |
|
| 39 |
HEALTHCHECK CMD curl --fail http://localhost:8501/_stcore/health || exit 1
|
| 40 |
|
| 41 |
-
|
| 42 |
-
# ENTRYPOINT ["streamlit", "run", "app.py", "--server.port=8501", "--server.address=0.0.0.0"]
|
| 43 |
-
# ENTRYPOINT ["streamlit", "run", "main.py", "--server.port=8501", "--server.address=0.0.0.0"]
|
| 44 |
-
# ENTRYPOINT ["streamlit", "run", "src/app.py", "--server.port=8501", "--server.address=0.0.0.0"]
|
| 45 |
-
ENTRYPOINT ["streamlit", "run", "streamlit_app.py", "--server.port=8501", "--server.address=0.0.0.0"]
|
|
|
|
| 11 |
COPY requirements.txt ./
|
| 12 |
RUN pip3 install -r requirements.txt
|
| 13 |
|
| 14 |
+
# Copy all project files
|
| 15 |
+
COPY . ./
|
| 16 |
|
| 17 |
# Create writable .streamlit folder with proper permissions
|
| 18 |
RUN mkdir -p /app/.streamlit && chmod 755 /app/.streamlit
|
|
|
|
| 20 |
# Add Streamlit config to disable usage stats collection
|
| 21 |
RUN echo "[browser]\ngatherUsageStats = false\n[server]\nheadless = true\nport = 8501\nenableCORS = false\nenableXsrfProtection = false\n" > /app/.streamlit/config.toml
|
| 22 |
|
| 23 |
+
# Set proper permissions for the config file
|
| 24 |
RUN chmod 644 /app/.streamlit/config.toml
|
| 25 |
|
| 26 |
# Create a non-root user for better security
|
|
|
|
| 38 |
|
| 39 |
HEALTHCHECK CMD curl --fail http://localhost:8501/_stcore/health || exit 1
|
| 40 |
|
| 41 |
+
ENTRYPOINT ["streamlit", "run", "src/streamlit_app.py", "--server.port=8501", "--server.address=0.0.0.0"]
|
|
|
|
|
|
|
|
|
|
|
|