Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(python): Change python-base image from alpine to debian #387

Merged
merged 7 commits into from
Feb 27, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
28 changes: 10 additions & 18 deletions earthly/docs/Earthfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ VERSION 0.8
IMPORT ../python AS python-ci
IMPORT ../../utilities/scripts AS scripts

# cspell: words freetype lcms openjpeg etag
# cspell: words libfreetype liblcms libopenjp etag

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

# Install extra packages we will need to support plugins.
RUN apk add --no-cache \
bash \
RUN apt-get install -y \
graphviz \
fontconfig \
ttf-liberation \
curl \
zlib-dev \
jpeg-dev \
fonts-liberation \
libxml2-dev \
libxslt-dev \
libxslt1-dev \
libffi-dev \
gcc \
musl-dev \
libgcc \
openssl-dev \
freetype-dev \
lcms2-dev \
openjpeg-dev \
tiff-dev \
libssl-dev \
libfreetype6-dev \
liblcms2-dev \
libopenjp2-7-dev \
libtiff-dev \
tk-dev \
tcl-dev \
git \
make

# Fix up font cache
Expand Down Expand Up @@ -119,7 +111,7 @@ PACKAGE:
FUNCTION

# Use the official Nginx base image
FROM nginx:alpine3.20-slim
FROM nginx:bookworm

# Force this server to disable the browsers cache for these files.
RUN echo " " > /etc/nginx/conf.d/disable-cache.conf; \
Expand Down
11 changes: 5 additions & 6 deletions earthly/python/Earthfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,21 +3,20 @@ VERSION 0.8

IMPORT ../../utilities/scripts AS scripts

# cspell: words libgcc ruff
# cspell: words libjpeg ruff

python-base:
FROM python:3.12-alpine3.20
FROM python:3.12-slim-bookworm

# Install necessary packages
RUN apk add --no-cache \
RUN apt-get update && apt-get install -y \
bash \
curl \
libffi-dev \
gcc \
musl-dev \
libgcc \
zlib-dev \
jpeg-dev \
zlib1g-dev \
libjpeg-dev \
git

# Poetry Installation directory.
Expand Down