Skip to content

Commit b8f3572

Browse files
authored
feat(python): Change python-base image from alpine to debian (#387)
* change python-base image from alpine to debian * fix * fix spelling * fix * fix * fix spelling
1 parent fdf1bbf commit b8f3572

File tree

2 files changed

+15
-24
lines changed

2 files changed

+15
-24
lines changed

earthly/docs/Earthfile

+10-18
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ VERSION 0.8
33
IMPORT ../python AS python-ci
44
IMPORT ../../utilities/scripts AS scripts
55

6-
# cspell: words freetype lcms openjpeg etag
6+
# cspell: words libfreetype liblcms libopenjp etag
77

88
deps:
99
FROM python-ci+python-base
@@ -14,28 +14,20 @@ deps:
1414
# This is all the tooling needed to build the docs.
1515

1616
# Install extra packages we will need to support plugins.
17-
RUN apk add --no-cache \
18-
bash \
17+
RUN apt-get install -y \
1918
graphviz \
2019
fontconfig \
21-
ttf-liberation \
22-
curl \
23-
zlib-dev \
24-
jpeg-dev \
20+
fonts-liberation \
2521
libxml2-dev \
26-
libxslt-dev \
22+
libxslt1-dev \
2723
libffi-dev \
28-
gcc \
29-
musl-dev \
30-
libgcc \
31-
openssl-dev \
32-
freetype-dev \
33-
lcms2-dev \
34-
openjpeg-dev \
35-
tiff-dev \
24+
libssl-dev \
25+
libfreetype6-dev \
26+
liblcms2-dev \
27+
libopenjp2-7-dev \
28+
libtiff-dev \
3629
tk-dev \
3730
tcl-dev \
38-
git \
3931
make
4032

4133
# Fix up font cache
@@ -119,7 +111,7 @@ PACKAGE:
119111
FUNCTION
120112

121113
# Use the official Nginx base image
122-
FROM nginx:alpine3.20-slim
114+
FROM nginx:bookworm
123115

124116
# Force this server to disable the browsers cache for these files.
125117
RUN echo " " > /etc/nginx/conf.d/disable-cache.conf; \

earthly/python/Earthfile

+5-6
Original file line numberDiff line numberDiff line change
@@ -3,21 +3,20 @@ VERSION 0.8
33

44
IMPORT ../../utilities/scripts AS scripts
55

6-
# cspell: words libgcc ruff
6+
# cspell: words libjpeg ruff
77

88
python-base:
9-
FROM python:3.12-alpine3.20
9+
FROM python:3.12-slim-bookworm
1010

1111
# Install necessary packages
12-
RUN apk add --no-cache \
12+
RUN apt-get update && apt-get install -y \
1313
bash \
1414
curl \
1515
libffi-dev \
1616
gcc \
1717
musl-dev \
18-
libgcc \
19-
zlib-dev \
20-
jpeg-dev \
18+
zlib1g-dev \
19+
libjpeg-dev \
2120
git
2221

2322
# Poetry Installation directory.

0 commit comments

Comments
 (0)