Update Dockerfile
Browse files- Dockerfile +5 -3
Dockerfile
CHANGED
@@ -23,7 +23,7 @@ RUN groupadd --system appuser && useradd --system --gid appuser appuser
|
|
23 |
RUN chown -R appuser:appuser /app
|
24 |
|
25 |
# Set the HOME environment variable for the non-root user.
|
26 |
-
#
|
27 |
ENV HOME=/app
|
28 |
|
29 |
# Switch to the non-root user for security
|
@@ -34,5 +34,7 @@ EXPOSE 8501
|
|
34 |
|
35 |
HEALTHCHECK CMD curl --fail http://localhost:8501/_stcore/health || exit 1
|
36 |
|
37 |
-
#
|
38 |
-
|
|
|
|
|
|
23 |
RUN chown -R appuser:appuser /app
|
24 |
|
25 |
# Set the HOME environment variable for the non-root user.
|
26 |
+
# THIS IS THE CRITICAL FIX for the original PermissionError.
|
27 |
ENV HOME=/app
|
28 |
|
29 |
# Switch to the non-root user for security
|
|
|
34 |
|
35 |
HEALTHCHECK CMD curl --fail http://localhost:8501/_stcore/health || exit 1
|
36 |
|
37 |
+
# --- UPDATED ENTRYPOINT ---
|
38 |
+
# Removed the unsupported `--global.gatherUsageStats` flag.
|
39 |
+
# The `--browser.gatherUsageStats=false` is still valid and good practice.
|
40 |
+
ENTRYPOINT ["streamlit", "run", "src/streamlit_app.py", "--server.port=8501", "--server.address=0.0.0.0", "--browser.gatherUsageStats=false"]
|