0
0
Fork 0
mirror of https://github.com/healthchecks/healthchecks.git synced 2025-04-08 06:30:05 +00:00

Update Dockerfile to explicitly install libexpat1

libexpat1 used to come preinstalled in python -slim base images,
but starting from 3.12.7 it does not any more.

Fixes: 
This commit is contained in:
Pēteris Caune 2024-10-23 13:19:59 +03:00
parent 7225165f9e
commit 9139d6825a
No known key found for this signature in database
GPG key ID: E28D7679E9A9EDE2

View file

@ -1,4 +1,4 @@
FROM python:3.12.6-slim-bookworm AS builder
FROM python:3.12.7-slim-bookworm AS builder
COPY requirements.txt /tmp
RUN \
@ -15,7 +15,7 @@ RUN \
rm -rf /opt/healthchecks/.git && \
rm -rf /opt/healthchecks/stuff
FROM python:3.12.6-slim-bookworm
FROM python:3.12.7-slim-bookworm
RUN useradd --system hc
ENV PYTHONUNBUFFERED=1
@ -23,7 +23,7 @@ WORKDIR /opt/healthchecks
RUN \
apt-get update && \
apt-get install -y libcurl4 libpq5 libmariadb3 libxml2 && \
apt-get install -y libcurl4 libexpat1 libpq5 libmariadb3 libxml2 && \
rm -rf /var/apt/cache && \
rm -rf /var/lib/apt/lists