Skip to content

Commit

Permalink
Mimic SemVer with apt-get satisfy for Debian deps at Dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
phansys committed Aug 21, 2023
1 parent 09c2a11 commit 241f860
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions .docker/php/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,12 @@ FROM php:$PHP_VERSION AS php
COPY --from=composer /usr/bin/composer /usr/bin/composer

RUN apt-get update \
&& apt-get install -y --no-install-recommends \
git=1:2.30.2-1 \
libzip-dev=1.7.3-1 \
unzip=6.0-26+deb11u1 \
zip=3.0-12 \
zlib1g-dev=1:1.2.11.dfsg-2+deb11u2 \
&& apt-get satisfy -qq --yes --no-install-recommends \
"git (>= 1:2.30.2), git (<< 1:3) \
libzip-dev (>= 1.7.3), libzip-dev (<< 2) \
unzip (>= 6), unzip (<< 7) \
zip (>= 3), zip (<< 4) \
zlib1g-dev (>= 1:1.2.11.dfsg), zlib1g-dev (<< 1:2)" \
&& apt-get -y autoremove \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* \
Expand Down

0 comments on commit 241f860

Please sign in to comment.