Skip to content

Commit b6cf686

Browse files
committed
Update python image
1 parent e74c344 commit b6cf686

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

python/Dockerfile

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,21 @@
1-
FROM python:3.13-slim-bookworm
2-
# Install wget and unzip:
1+
FROM python:3.12-slim-bookworm
2+
3+
# Install wget, unzip, git, and build tools (needed for compiling packages like matplotlib)
34
RUN apt update && apt install -y \
45
wget \
56
unzip \
67
git \
8+
build-essential \
79
&& rm -rf /var/lib/apt/lists/*
10+
811
# Install quarto
912
RUN wget https://github.com/quarto-dev/quarto-cli/releases/download/v1.5.57/quarto-1.5.57-linux-amd64.deb
1013
RUN dpkg -i quarto*
1114
RUN rm quarto*
15+
1216
# Install requirements
1317
RUN wget https://raw.githubusercontent.com/geocompx/py/main/requirements.txt
1418
RUN pip install -r requirements.txt
19+
20+
# Clean up build tools to reduce image size (optional but recommended)
21+
RUN apt purge -y build-essential && apt autoremove -y && rm -rf /var/lib/apt/lists/*

0 commit comments

Comments
 (0)