[Git][reproducible-builds/diffoscope][master] Merge run commands into single layer
Mattia Rizzolo (@mattia)
gitlab at salsa.debian.org
Tue Aug 22 18:48:49 UTC 2023
Mattia Rizzolo pushed to branch master at Reproducible Builds / diffoscope
Commits:
0798a2d1 by Greg Chabala at 2023-08-19T19:12:10-05:00
Merge run commands into single layer
- - - - -
1 changed file:
- Dockerfile
Changes:
=====================================
Dockerfile
=====================================
@@ -1,17 +1,18 @@
-FROM debian:sid
+FROM debian:sid-slim
ARG DEBIAN_FRONTEND=noninteractive
-RUN apt-get update && apt-get dist-upgrade --yes
-RUN apt-get install --yes --no-install-recommends build-essential devscripts equivs
-
ADD [".", "/srv/diffoscope"]
-RUN mk-build-deps --install --tool 'apt-get -o Debug::pkgProblemResolver=yes --no-install-recommends --yes' /srv/diffoscope/debian/control
-
-RUN apt-get remove --purge --yes build-essential devscripts equivs
-RUN rm -rf /srv/diffoscope/debian
+RUN mkdir -p /usr/share/man/man1/ \
+&& apt-get update && apt-get install --yes --no-install-recommends \
+ build-essential devscripts equivs \
+&& mk-build-deps --install --tool 'apt-get -o Debug::pkgProblemResolver=yes --no-install-recommends --yes' /srv/diffoscope/debian/control \
+&& apt-get remove --purge --yes \
+ build-essential devscripts equivs \
+&& rm -rf /srv/diffoscope/debian \
+&& rm -rf /var/lib/apt/lists/* \
+&& useradd -ms /bin/bash user
-RUN useradd -ms /bin/bash user
USER user
WORKDIR /home/user
View it on GitLab: https://salsa.debian.org/reproducible-builds/diffoscope/-/commit/0798a2d1a24cc8bc4e2b05fba0cce51ab668c9b2
--
View it on GitLab: https://salsa.debian.org/reproducible-builds/diffoscope/-/commit/0798a2d1a24cc8bc4e2b05fba0cce51ab668c9b2
You're receiving this email because of your account on salsa.debian.org.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.reproducible-builds.org/pipermail/rb-commits/attachments/20230822/2dab1253/attachment.htm>
More information about the rb-commits
mailing list