From 4486c606aabf23ca05c634a64c198c7ea8c1a6b4 Mon Sep 17 00:00:00 2001 From: Tibor Leupold Date: Fri, 3 Sep 2021 15:28:21 -0700 Subject: [PATCH] Update Dockerfile for Debian Bullseye release The previously used base image `python:3.7` was changed to now use Debian Bullseye. This lead to installation issues of `libenchant-dev` (see #31). This is now fixed by upgrading the installation command for `libenchant` to `libenchant-2-dev` (see also https://pkgs.org/search/?q=LIBENCHANT). Additionally, to avoid similar issues in the future, the Debian version of the base image is now defined in the `Dockerfile`. --- Dockerfile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index 0b2ac9b..cc8e3d2 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,5 +1,5 @@ # Use an official Python runtime as a parent image -FROM python:3.7 +FROM python:3.7-bullseye LABEL maintainer="hello@wagtail.io" # Set environment varibles @@ -7,7 +7,7 @@ ENV PYTHONUNBUFFERED 1 # Install libenchant and create the requirements folder. RUN apt-get update -y \ - && apt-get install -y libenchant-dev postgresql-client \ + && apt-get install -y libenchant-2-dev postgresql-client \ && mkdir -p /code/requirements # Install the bakerydemo project's dependencies into the image.