-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
18 lines (17 loc) · 811 Bytes
/
Dockerfile
File metadata and controls
18 lines (17 loc) · 811 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
# syntax=docker/dockerfile:1@sha256:2780b5c3bab67f1f76c781860de469442999ed1a0d7992a5efdf2cffc0e3d769
#
# Build stage
FROM ghcr.io/astral-sh/uv:python3.13-alpine@sha256:2f62f0051510ca0fa85fd4d3ab60eb8dc8eb6a6bde24498cb7423268930b5fa8 AS build
WORKDIR /app
COPY pyproject.toml LICENSE README.md ./
COPY aggregator_proxy aggregator_proxy
RUN uv build --no-cache --wheel --out-dir dist
# Final stage
FROM ghcr.io/astral-sh/uv:python3.13-alpine@sha256:2f62f0051510ca0fa85fd4d3ab60eb8dc8eb6a6bde24498cb7423268930b5fa8
COPY --from=build /app/dist/*.whl /tmp/
RUN uv pip install --system --no-cache /tmp/*.whl && rm /tmp/*.whl
RUN addgroup -g 1000 aggregator_proxy && adduser -D -u 1000 -G aggregator_proxy aggregator_proxy
USER aggregator_proxy
WORKDIR /home/aggregator_proxy
EXPOSE 8080/tcp
CMD ["aggregator-proxy"]