business-risk / Dockerfile
Djohell's picture
Upload 3 files
8c5317e verified
Raw
History Blame Contribute Delete
525 Bytes
FROM python:3.12-slim
WORKDIR /app
RUN apt-get update && apt-get install -y \
build-essential \
curl \
&& rm -rf /var/lib/apt/lists/*
RUN pip install --no-cache-dir poetry
COPY pyproject.toml poetry.lock ./
RUN poetry config virtualenvs.create false \
&& poetry install --no-interaction --no-ansi --no-root
COPY . .
EXPOSE 7860
HEALTHCHECK CMD curl --fail http://localhost:7860/_stcore/health
ENTRYPOINT ["streamlit", "run", "Expertise_et_vision.py", "--server.port=7860", "--server.address=0.0.0.0"]