forked from ciotto/pyheif-pillow-opener
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Dockerfile
22 lines (17 loc) · 855 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
FROM ubuntu:20.04
WORKDIR /src
RUN --mount=type=cache,target=/var/cache/apt,sharing=locked set -ex \
&& rm -f /etc/apt/apt.conf.d/docker-clean \
&& apt-get update
RUN --mount=type=cache,target=/var/cache/apt,sharing=locked set -ex \
&& apt-get install --no-install-recommends -y \
git curl ca-certificates python3-pip build-essential make
RUN --mount=type=cache,target=/var/cache/apt,sharing=locked set -ex \
&& apt-get install --no-install-recommends -y \
python3-dev libpng-dev libjpeg-dev \
&& pip install --no-cache-dir -U pip setuptools
RUN --mount=type=cache,target=/var/cache/apt,sharing=locked set -ex \
&& BUCKET=https://uploadcare-packages.s3.amazonaws.com \
&& curl -fLO $BUCKET/libheif/libheif-uc_1.18.2-bf35e9e-47f4fc0_$(dpkg --print-architecture).deb \
&& dpkg -i *.deb \
&& rm *.deb