feat: bugfix docker image by upgrading alpine and removing some deps

This commit is contained in:
Konstantin 2024-11-08 10:26:08 +01:00
parent 567eda282b
commit 9e63f974bd
2 changed files with 6 additions and 5 deletions

View file

@ -1,3 +1,4 @@
.idea/
# Django project
/media/
/static/

View file

@ -1,5 +1,5 @@
# Use an official Python runtime based on Debian 10 "buster" as a parent image.
FROM python:3.11-slim-buster
FROM python:3.12-slim
# Add user that will be used in the container.
# RUN useradd wagtail
@ -15,10 +15,10 @@ ENV PYTHONUNBUFFERED=1 \
PORT=8000
# Install system packages required by Wagtail and Django.
RUN apt-get update --yes --quiet && apt-get install --yes --quiet --no-install-recommends \
build-essential \
libpq-dev \
libmariadbclient-dev \
RUN apt-get update --yes --quiet && apt-get install --yes --no-install-recommends \
# build-essential \
# libpq-dev \
# libmariadbclient-dev \
libjpeg62-turbo-dev \
zlib1g-dev \
libwebp-dev \