Files
ronis_0505 5662d8877a
Some checks failed
continuous-integration/drone Build is failing
MVP
2025-07-27 22:17:28 +03:00

31 lines
521 B
Docker

FROM python:3.12 AS builder
WORKDIR /app
RUN apt-get update && apt-get install -y build-essential curl
RUN curl -Ls https://astral.sh/uv/install.sh | bash
ENV PATH="/root/.local/bin:$PATH"
COPY pyproject.toml .
RUN uv venv /install && \
. /install/bin/activate && \
uv pip install .
# Stage 2: Final image
FROM python:3.12-slim
WORKDIR /app
COPY --from=builder /install /opt/venv
# Activate virtualenv
ENV PATH="/opt/venv/bin:$PATH"
COPY ./app .
RUN ls -la | echo
ENTRYPOINT ["python", "-m", "main" ]