Skip to content

Commit 2a89fc4

Browse files
committed
feat: use alpine image for reports
1 parent ab50da8 commit 2a89fc4

File tree

1 file changed

+4
-9
lines changed

1 file changed

+4
-9
lines changed
Lines changed: 4 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,17 @@
1-
FROM ghcr.io/astral-sh/uv:python3.12-bookworm-slim
1+
FROM ghcr.io/astral-sh/uv:python3.12-alpine
22
COPY --from=ghcr.io/astral-sh/uv:latest /uv /uvx /bin/
33

44
ENV UV_COMPILE_BYTECODE=1
55
ENV UV_NO_INSTALLER_METADATA=1
66
ENV UV_LINK_MODE=copy
77
ENV UV_TOOL_BIN_DIR=/usr/local/bin
88

9-
ARG MICROSERVICE_REPORTS_SERVICE_INTERNAL_PORT
10-
119
WORKDIR /app
1210

13-
RUN apt-get update && \
14-
apt-get install -y --no-install-recommends \
11+
RUN apk update && \
12+
apk add --no-cache \
1513
libpq-dev \
16-
gcc \
17-
&& rm -rf /var/lib/apt/lists/*
14+
gcc
1815

1916

2017
RUN --mount=type=cache,target=/root/.cache/uv \
@@ -28,6 +25,4 @@ RUN --mount=type=cache,target=/root/.cache/uv \
2825

2926
ENV PATH="/app/.venv/bin:$PATH"
3027

31-
EXPOSE $MICROSERVICE_REPORTS_SERVICE_INTERNAL_PORT
32-
3328
CMD ["python", "main.py"]

0 commit comments

Comments
 (0)