Skip to content
Snippets Groups Projects
Unverified Commit a5c1364d authored by Mattia Rizzolo's avatar Mattia Rizzolo
Browse files

Use apt-get instead of apt in the Dockerfile

parent 212bf922
No related branches found
No related tags found
No related merge requests found
Pipeline #86190 passed with warnings
......@@ -2,14 +2,14 @@ FROM debian:sid
ENV DEBIAN_FRONTEND noninteractive
RUN apt update && apt dist-upgrade --yes
RUN apt install --yes --no-install-recommends devscripts equivs
RUN apt-get update && apt-get dist-upgrade --yes
RUN apt-get install --yes --no-install-recommends 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 remove --purge --yes devscripts equivs
RUN apt autoremove --purge --yes
RUN apt-get remove --purge --yes devscripts equivs
RUN apt-get autoremove --purge --yes
ENV PATH="/srv/diffoscope/bin:${PATH}"
......
  • Owner

    How come, out of interest?

  • Author Owner

    Because running docker build would print out warnings about apt not being API-stable (I suppose, due to apt's output going through docker instead of a terminal). The warnings were annoying me, so I did this.

0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment