IMAP-Sync/dockerfile/streamlit-dockerfile

23 lines
524 B
Plaintext

# app/Dockerfile
FROM python:3.9-slim
WORKDIR /app
RUN apt-get update && apt-get install -y \
build-essential \
curl \
software-properties-common \
git \
&& rm -rf /var/lib/apt/lists/*
RUN pip3 install -r /app/requirements.txt
EXPOSE 80
COPY ../python_scripte/streamlit-app.py /app/
COPY ../python_scripte/requirements.txt /app/
HEALTHCHECK CMD curl --fail http://localhost:80/_stcore/health
ENTRYPOINT ["streamlit", "run", "/app/streamlit-app.py", "--server.port=80", "--server.address=0.0.0.0"]