-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathDockerfile
More file actions
32 lines (21 loc) · 1017 Bytes
/
Copy pathDockerfile
File metadata and controls
32 lines (21 loc) · 1017 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
FROM python:3.14 AS builder
ENV UV_NO_DEV=1
ENV UV_PYTHON_DOWNLOADS=0
COPY --from=ghcr.io/astral-sh/uv:0.8.22 /uv /uvx /bin/
WORKDIR /usr/src/app
RUN --mount=type=cache,target=/root/.cache/uv \
--mount=type=bind,source=uv.lock,target=uv.lock \
--mount=type=bind,source=pyproject.toml,target=pyproject.toml \
--mount=type=bind,source=packages/alchemy/pyproject.toml,target=packages/alchemy/pyproject.toml \
--mount=type=bind,source=packages/auth/pyproject.toml,target=packages/auth/pyproject.toml \
--mount=type=bind,source=packages/common/pyproject.toml,target=packages/common/pyproject.toml \
--mount=type=bind,source=packages/graphql/pyproject.toml,target=packages/graphql/pyproject.toml \
uv sync --frozen --no-install-workspace
COPY . /usr/src/app/
RUN --mount=type=cache,target=/root/.cache/uv \
uv sync --frozen --all-packages --all-extras
FROM python:3.14
WORKDIR /usr/src/app
COPY --from=builder /usr/src/app /usr/src/app/
EXPOSE 8001
CMD ["/usr/src/app/docker.sh"]