Update Dockerfile
Browse files- Dockerfile +5 -8
Dockerfile
CHANGED
|
@@ -52,8 +52,9 @@ RUN groupadd -r appgroup --gid 1000 && \
|
|
| 52 |
|
| 53 |
# Set Streamlit home directory (already created and chowned)
|
| 54 |
ENV STREAMLIT_HOME=/home/appuser/.streamlit
|
| 55 |
-
# Set environment variable to disable telemetry (alternative to CLI flag)
|
| 56 |
-
ENV STREAMLIT_CLIENT_GATHER_USAGE_STATS=false
|
|
|
|
| 57 |
|
| 58 |
# Set the working directory in the container
|
| 59 |
WORKDIR /app
|
|
@@ -80,14 +81,10 @@ RUN mkdir -p /app/temp_cinegen_media
|
|
| 80 |
RUN mkdir -p /app/assets/fonts
|
| 81 |
|
| 82 |
# (Optional: System-wide font copy block, commented out as before, only if needed)
|
| 83 |
-
# USER root
|
| 84 |
-
# RUN if [ -d "/app/assets/fonts" ] && [ "$(ls -A /app/assets/fonts)" ]; then \
|
| 85 |
-
# ...
|
| 86 |
-
# USER appuser
|
| 87 |
|
| 88 |
# Expose the port Streamlit runs on
|
| 89 |
EXPOSE 8501
|
| 90 |
|
| 91 |
# Define the command to run the application
|
| 92 |
-
#
|
| 93 |
-
CMD ["streamlit", "run", "app.py", "--server.port=8501", "--server.address=0.0.0.0", "--
|
|
|
|
| 52 |
|
| 53 |
# Set Streamlit home directory (already created and chowned)
|
| 54 |
ENV STREAMLIT_HOME=/home/appuser/.streamlit
|
| 55 |
+
# Set environment variable to disable telemetry (alternative to CLI flag, but CLI is more direct for startup)
|
| 56 |
+
# ENV STREAMLIT_CLIENT_GATHER_USAGE_STATS=false # This was incorrect, use browser.gatherUsageStats
|
| 57 |
+
ENV BROWSER_GATHERUSAGEDATA=false # Alternative environment variable for the same thing
|
| 58 |
|
| 59 |
# Set the working directory in the container
|
| 60 |
WORKDIR /app
|
|
|
|
| 81 |
RUN mkdir -p /app/assets/fonts
|
| 82 |
|
| 83 |
# (Optional: System-wide font copy block, commented out as before, only if needed)
|
|
|
|
|
|
|
|
|
|
|
|
|
| 84 |
|
| 85 |
# Expose the port Streamlit runs on
|
| 86 |
EXPOSE 8501
|
| 87 |
|
| 88 |
# Define the command to run the application
|
| 89 |
+
# CORRECTED --client.gatherUsageStats to --browser.gatherUsageStats
|
| 90 |
+
CMD ["streamlit", "run", "app.py", "--server.port=8501", "--server.address=0.0.0.0", "--browser.gatherUsageStats=false"]
|