This commit is contained in:
+11
-3
@@ -1,5 +1,12 @@
|
||||
FROM python:3.12-slim
|
||||
|
||||
ENV HOME=/app \
|
||||
PYTHONUNBUFFERED=1 \
|
||||
STREAMLIT_SERVER_PORT=8501 \
|
||||
STREAMLIT_SERVER_ADDRESS=0.0.0.0 \
|
||||
STREAMLIT_SERVER_HEADLESS=true \
|
||||
STREAMLIT_BROWSER_GATHER_USAGE_STATS=false
|
||||
|
||||
WORKDIR /app
|
||||
|
||||
# Systeem-dependency voor de HEALTHCHECK hieronder
|
||||
@@ -11,8 +18,9 @@ RUN pip install --no-cache-dir -r requirements.txt
|
||||
|
||||
COPY . .
|
||||
|
||||
RUN chgrp -R 0 /app && chmod -R g=u /app
|
||||
|
||||
USER 1001
|
||||
EXPOSE 8501
|
||||
|
||||
HEALTHCHECK CMD curl --fail http://localhost:8501/_stcore/health || exit 1
|
||||
|
||||
ENTRYPOINT ["streamlit", "run", "app.py", "--server.port=8501", "--server.address=0.0.0.0"]
|
||||
CMD ["streamlit", "run", "app.py"]
|
||||
|
||||
Reference in New Issue
Block a user