Skip to content

Commit

Permalink
dockerfile: update to Debian 12
Browse files Browse the repository at this point in the history
- drops tesseract binaries, so this fully relies on tesserocr wheels
  being available
  • Loading branch information
nijel committed Oct 9, 2023
1 parent 203c387 commit 4d968a6
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM python:3.11.5-slim-bullseye
FROM python:3.11.5-slim-bookworm
ENV PYVERSION 3.11
ENV WEBLATE_VERSION 5.0.2
ENV WEBLATE_EXTRAS all,MySQL,zxcvbn,test
Expand Down Expand Up @@ -50,7 +50,6 @@ ENV PYTHONUNBUFFERED=1
COPY requirements.txt Gemfile patches /app/src/

# Install dependencies
# TODO: drop libtesseract4 once https://github.com/sirfz/tesserocr/issues/322 is fixed
# hadolint ignore=DL3008,DL3013,SC2046,DL3003
RUN \
export DEBIAN_FRONTEND=noninteractive \
Expand All @@ -75,15 +74,12 @@ RUN \
pkg-config \
file \
make \
libtesseract4 \
libcairo2-dev \
libxml2-dev \
libacl1-dev \
libmariadb3 \
libmariadb-dev \
libxmlsec1-dev \
libleptonica-dev \
libtesseract-dev \
libsasl2-dev \
libldap2-dev \
libldap-common \
Expand All @@ -101,7 +97,7 @@ RUN \
unzip \
xz-utils \
&& c_rehash \
&& echo "deb http://apt.postgresql.org/pub/repos/apt bullseye-pgdg main" > /etc/apt/sources.list.d/pgdg.list \
&& echo "deb http://apt.postgresql.org/pub/repos/apt bookworm-pgdg main" > /etc/apt/sources.list.d/pgdg.list \
&& curl -L https://www.postgresql.org/media/keys/ACCC4CF8.asc | apt-key add - \
&& apt-get update \
&& apt-get install --no-install-recommends -y \
Expand Down Expand Up @@ -134,8 +130,6 @@ RUN \
ruby-dev \
cmake \
pkg-config \
libleptonica-dev \
libtesseract-dev \
libmariadb-dev \
libgirepository1.0-dev \
libxml2-dev \
Expand Down

0 comments on commit 4d968a6

Please sign in to comment.