always taking snapshots ain't necessary

This commit is contained in:
2021-02-16 17:55:58 +01:00
parent d414591340
commit 90c527d7c7

View File

@@ -1,20 +1,18 @@
FROM debian:stable FROM debian:stable
# APT-cache for all # APT-cache for all
RUN sed -i 's@deb.debian.org@apt-cache.lan/deb.debian.org@g' /etc/apt/sources.list RUN sed -i 's@deb.debian.org@apt-cache.lan/deb.debian.org@g' /etc/apt/sources.list && \
RUN sed -i 's@security.debian.org@apt-cache.lan/security.debian.org@g' /etc/apt/sources.list sed -i 's@security.debian.org@apt-cache.lan/security.debian.org@g' /etc/apt/sources.list && \
RUN echo 'deb-src http://apt-cache.lan/deb.debian.org/debian stable main' > /etc/apt/sources.list.d/src.list echo 'deb-src http://apt-cache.lan/deb.debian.org/debian stable main' > /etc/apt/sources.list.d/src.list
RUN apt-get update RUN apt-get update -y &&\
RUN apt-get install -y \ apt-get install -y \
procps build-essential dpkg-dev dpkg-cross \ procps build-essential dpkg-dev dpkg-cross \
devscripts make ccache distcc devscripts make ccache distcc && \
RUN apt-get build-dep -y linux-source apt-get build-dep -y linux-source && \
apt-get remove --purge -y exim* && \
#Cleanups apt-get autoremove --purge -y && \
RUN apt-get remove --purge -y exim* apt-get clean -y && \
RUN apt-get autoremove --purge -y
RUN apt-get clean -y && \
rm -rf /var/lib/apt/lists/* && \ rm -rf /var/lib/apt/lists/* && \
rm -rf /var/cache/apt/* rm -rf /var/cache/apt/*