FROM python:3.13.5-slim COPY --from=ghcr.io/astral-sh/uv:0.9.0 /uv /uvx /bin/ WORKDIR /app ENV HOME=/app ENV SENTENCE_TRANSFORMERS_HOME=/app/.cache RUN apt-get update && apt-get install -y \ build-essential \ curl \ git \ && rm -rf /var/lib/apt/lists/* # Ensure the installed binary is on the `PATH` # ENV PATH="/root/.local/bin/:$PATH" # Copy the project into the image ADD . /app # Sync the project into a new environment, asserting the lockfile is up to date RUN uv sync --locked # Set PATH so we can easily call Python from the .venv ENV PATH="/app/.venv/bin:$PATH" EXPOSE 8501 HEALTHCHECK CMD curl --fail http://localhost:8501/_stcore/health ENTRYPOINT ["streamlit", "run", "src/streamlit_app.py", "--server.port=8501", "--server.address=0.0.0.0"] # ENTRYPOINT ["python", "main.py"] # COPY src/ ./src/ # COPY labelled_data/ ./labelled_data/ # ENTRYPOINT ["streamlit", "run", "src/streamlit_app.py", "--server.port=8501", "--server.address=0.0.0.0"]