Skip to content

Commit 4c20ea5

Browse files
committed
docker image refactor
1 parent 35a514b commit 4c20ea5

File tree

1 file changed

+3
-18
lines changed

1 file changed

+3
-18
lines changed

Dockerfile

Lines changed: 3 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,11 @@
1-
FROM ubuntu:25.10 AS base
1+
FROM python:3.14-slim AS base
22

33
RUN apt-get update -qy \
44
&& apt-get install -qyy \
55
-o APT::Install-Recommends=false \
66
-o APT::Install-Suggests=false \
77
build-essential \
8-
ca-certificates \
9-
python3-setuptools \
10-
python3.14-dev
11-
8+
ca-certificates
129

1310
COPY --from=ghcr.io/astral-sh/uv:latest /uv /uvx /bin/
1411

@@ -22,25 +19,13 @@ COPY uv.lock /_lock/
2219

2320
RUN cd /_lock && uv sync --locked --no-install-project
2421
##########################################################################
25-
FROM ubuntu:25.10
22+
FROM python:3.14-slim
2623

2724
ENV PATH=/panettone/bin:$PATH
2825

2926
RUN groupadd -r panettone
3027
RUN useradd -r -d /panettone -g panettone -N panettone
3128

32-
STOPSIGNAL SIGINT
33-
34-
RUN apt-get update -qy && apt-get install -qyy \
35-
-o APT::Install-Recommends=false \
36-
-o APT::Install-Suggests=false \
37-
python3.14 \
38-
libpython3.14 \
39-
libpcre3
40-
41-
RUN apt-get clean
42-
RUN rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
43-
4429
COPY --from=base --chown=panettone:panettone /panettone /panettone
4530

4631
USER panettone

0 commit comments

Comments
 (0)