-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathDockerfile
More file actions
21 lines (17 loc) · 782 Bytes
/
Dockerfile
File metadata and controls
21 lines (17 loc) · 782 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
ARG PYTHON_IMAGE
# hadolint ignore=DL3006
FROM ${PYTHON_IMAGE}
# hadolint ignore=DL3013,DL3042
RUN pip install uv
WORKDIR /app
# Copy rarely changing files first
COPY pyproject.toml README.md ./
COPY packages/stompman/stompman/__init__.py packages/stompman/stompman/__init__.py
COPY packages/stompman/pyproject.toml packages/stompman/pyproject.toml
COPY packages/faststream-stomp/README.md packages/faststream-stomp/README.md
COPY packages/faststream-stomp/pyproject.toml packages/faststream-stomp/pyproject.toml
COPY packages/faststream-stomp/faststream_stomp/__init__.py packages/faststream-stomp/faststream_stomp/__init__.py
ENV SETUPTOOLS_SCM_PRETEND_VERSION=0
RUN --mount=type=cache,target=~/.cache/uv \
uv lock && uv sync --all-extras --all-packages --frozen
COPY . .