Skip to content

Commit 13d928f

Browse files
committed
Add build-essential for python-sane
1 parent 38bf4fc commit 13d928f

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

Dockerfile

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ RUN --mount=type=cache,target=/var/lib/apt/lists \
44
--mount=type=cache,target=/var/cache,sharing=locked \
55
apt-get update \
66
&& apt-get upgrade --yes \
7+
&& ln -fs /usr/share/zoneinfo/Etc/UTC /etc/localtime \
78
&& DEBIAN_FRONTEND=noninteractive TZ=Etc/UTC apt-get install --assume-yes --no-install-recommends tzdata
89

910
FROM upstream AS base-all
@@ -46,10 +47,14 @@ RUN --mount=type=cache,target=/var/lib/apt/lists \
4647
libimage-exiftool-perl software-properties-common ghostscript optipng pngquant libzbar0
4748

4849
RUN --mount=type=cache,target=/root/.cache \
49-
--mount=type=bind,from=poetry,source=/tmp,target=/tmp \
50-
python3 -m pip install --disable-pip-version-check --no-deps --requirement=/tmp/requirements.txt \
50+
--mount=type=bind,from=poetry,source=/tmp,target=/requirements \
51+
apt-get update \
52+
&& apt-get install --assume-yes --no-install-recommends build-essential python3-dev libsane-dev \
53+
&& python3 -m pip install --disable-pip-version-check --no-deps --requirement=/requirements/requirements.txt \
5154
&& python3 -m pip freeze > /requirements.txt \
52-
&& mkdir -p /source /destination /scan-codes
55+
&& mkdir -p /source /destination /scan-codes \
56+
&& apt-get remove --assume-yes build-essential python3-dev libsane-dev \
57+
&& apt-get autoremove --assume-yes
5358

5459
VOLUME /source \
5560
/destination \

0 commit comments

Comments
 (0)