Spaces:
Sleeping
Sleeping
File size: 1,025 Bytes
34ab9d7 a9f7e11 6ee3c4a a931198 6ee3c4a b916805 154ab76 34ab9d7 a9f7e11 6ee3c4a a9f7e11 6ee3c4a fe79672 ce91adb 12fa117 a9f7e11 34ab9d7 a9f7e11 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 | 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"]
|