Skip to content

Commit 136ac2d

Browse files
authored
Use uv docker image (#34)
1 parent d223821 commit 136ac2d

File tree

1 file changed

+5
-8
lines changed

1 file changed

+5
-8
lines changed

Dockerfile

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,13 @@
11
ARG PYTHON_VERSION
2+
FROM ghcr.io/astral-sh/uv:0.2.11 as uv
23
FROM python:${PYTHON_VERSION}-slim-bullseye
34

4-
# hadolint ignore=DL3013, DL3042
5-
RUN --mount=type=cache,target=~/.cache/pip pip install uv==0.2.11
6-
75
WORKDIR /app
8-
9-
ENV SETUPTOOLS_SCM_PRETEND_VERSION=0
106
COPY pyproject.toml README.md ./
11-
RUN uv lock
12-
137
COPY stompman/__init__.py stompman/__init__.py
14-
RUN --mount=type=cache,target=~/.cache/uv uv sync
158

9+
ENV SETUPTOOLS_SCM_PRETEND_VERSION=0
10+
RUN --mount=from=uv,source=/uv,target=/bin/uv \
11+
--mount=type=cache,target=~/.cache/uv \
12+
uv lock && uv sync
1613
COPY . .

0 commit comments

Comments
 (0)