Skip to content

Commit f19cada

Browse files
committed
Update Dockerfile
1 parent 608ab6f commit f19cada

File tree

3 files changed

+10
-10
lines changed

3 files changed

+10
-10
lines changed

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ dependencies = [
77
"azure-cosmos==4.9.0",
88
"fastapi[standard-no-fastapi-cloud-cli]==0.116.1",
99
"poethepoet==0.37.0",
10-
"pydantic==2.11.7",
10+
"pydantic==2.11.9",
1111
"pydantic-settings[azure-key-vault]==2.10.1",
1212
]
1313

src/python_archetype/api/Dockerfile

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# 0.8.16-python3.12-bookworm-slim
2-
FROM astral/uv@sha256:7a97137011fcda1395e1081349fb43ff5fc35953295d8b7c83b75e8829c82c9d AS builder
2+
FROM astral/uv@sha256:190d69899a7a73b22460b2779f85d2d65fddf9bcb05037d4463beaf52310a919 AS builder
33

44
ENV UV_COMPILE_BYTECODE=1 UV_LINK_MODE=copy UV_PYTHON_DOWNLOADS=0
55

@@ -14,13 +14,13 @@ RUN --mount=type=cache,target=/root/.cache/uv \
1414
uv sync --locked --no-dev
1515

1616
# 3.12.11-slim-bookworm
17-
FROM python@sha256:42cf2422587a3dac0e0a3674a4d86f01570d5d7260588f3845f51e6176d8134b AS final
17+
FROM python@sha256:3ad2a947749a3eb74acd9e00636ffa0def5aae0bbbd9fa4fff6253e404e2fe15 AS final
1818

1919
ENV COMMON__ENVIRONMENT=""
2020

21-
RUN adduser --system --no-create-home nonroot
22-
COPY --from=builder --chown=nonroot /app /app
21+
RUN adduser --system --group app
22+
COPY --from=builder --chown=app /app /app
2323
WORKDIR /app
2424
EXPOSE 8000
25-
USER nonroot
25+
USER app
2626
CMD [".venv/bin/poe", "start-api-pro"]

uv.lock

Lines changed: 4 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)