Skip to content

Commit

Permalink
fix: multi stage
Browse files Browse the repository at this point in the history
  • Loading branch information
a5chin committed Nov 23, 2024
1 parent 18e7929 commit dad0468
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,19 +1,21 @@
ARG DEBIAN_VERSION=bookwork
ARG UV_VERSION=0.5.4
ARG VARIANT=3.12


FROM ghcr.io/astral-sh/uv:$UV_VERSION AS uv


FROM python:$VARIANT-slim-$DEBIAN_VERSION
LABEL maintainer="a5chin <[email protected]>"

ARG UV_VERSION=0.5.4

ENV PYTHONDONTWRITEBYTECODE=True
ENV PYTHONUNBUFFERED=True
ENV UV_LINK_MODE=copy

WORKDIR /app

COPY --from=ghcr.io/astral-sh/uv:$UV_VERSION /uv /uvx /bin/
COPY --from=uv /uv /uvx /bin/
COPY pyproject.toml uv.lock ./

RUN uv sync --frozen --no-install-project

0 comments on commit dad0468

Please sign in to comment.