Skip to content
This repository has been archived by the owner on Apr 26, 2024. It is now read-only.

Commit

Permalink
Add required Debian dependencies to allow docker builds on the arm pl…
Browse files Browse the repository at this point in the history
…atform (#8144)

Signed-off-by: Christopher May-Townsend <chris@maytownsend.co.uk>
  • Loading branch information
maquis196 authored Aug 26, 2020
1 parent 98125bb commit ed18f32
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 3 deletions.
1 change: 1 addition & 0 deletions changelog.d/8144.docker
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Fix builds of the Docker image on non-x86 platforms.
13 changes: 10 additions & 3 deletions docker/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,16 @@ ARG PYTHON_VERSION=3.7
FROM docker.io/python:${PYTHON_VERSION}-slim as builder

# install the OS build deps


RUN apt-get update && apt-get install -y \
build-essential \
libffi-dev \
libjpeg-dev \
libpq-dev \
libssl-dev \
libwebp-dev \
libxml++2.6-dev \
libxslt1-dev \
zlib1g-dev \
&& rm -rf /var/lib/apt/lists/*

# Build dependencies that are not available as wheels, to speed up rebuilds
Expand Down Expand Up @@ -56,9 +61,11 @@ FROM docker.io/python:${PYTHON_VERSION}-slim

RUN apt-get update && apt-get install -y \
curl \
gosu \
libjpeg62-turbo \
libpq5 \
libwebp6 \
xmlsec1 \
gosu \
&& rm -rf /var/lib/apt/lists/*

COPY --from=builder /install /usr/local
Expand Down

0 comments on commit ed18f32

Please sign in to comment.