Update Dockerfile for Debian Bullseye release (#32)

* 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`.

* Upgrade Python base image from 3.7 to 3.8
pull/37/head
Tibor Leupold 2021-09-03 16:16:43 -07:00 zatwierdzone przez GitHub
rodzic f7b8fc9f76
commit 121d6fc71e
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: 4AEE18F83AFDEB23
1 zmienionych plików z 2 dodań i 2 usunięć

Wyświetl plik

@ -1,5 +1,5 @@
# Use an official Python runtime as a parent image
FROM python:3.7
FROM python:3.8-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.