We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d223821 commit 136ac2dCopy full SHA for 136ac2d
Dockerfile
@@ -1,16 +1,13 @@
1
ARG PYTHON_VERSION
2
+FROM ghcr.io/astral-sh/uv:0.2.11 as uv
3
FROM python:${PYTHON_VERSION}-slim-bullseye
4
-# hadolint ignore=DL3013, DL3042
5
-RUN --mount=type=cache,target=~/.cache/pip pip install uv==0.2.11
6
-
7
WORKDIR /app
8
9
-ENV SETUPTOOLS_SCM_PRETEND_VERSION=0
10
COPY pyproject.toml README.md ./
11
-RUN uv lock
12
13
COPY stompman/__init__.py stompman/__init__.py
14
-RUN --mount=type=cache,target=~/.cache/uv uv sync
15
+ENV SETUPTOOLS_SCM_PRETEND_VERSION=0
+RUN --mount=from=uv,source=/uv,target=/bin/uv \
+ --mount=type=cache,target=~/.cache/uv \
+ uv lock && uv sync
16
COPY . .
0 commit comments