always taking snapshots ain't necessary
This commit is contained in:
22
Dockerfile
22
Dockerfile
@@ -1,20 +1,18 @@
|
||||
FROM debian:stable
|
||||
|
||||
# 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@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
|
||||
RUN sed -i 's@deb.debian.org@apt-cache.lan/deb.debian.org@g' /etc/apt/sources.list && \
|
||||
sed -i 's@security.debian.org@apt-cache.lan/security.debian.org@g' /etc/apt/sources.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 install -y \
|
||||
RUN apt-get update -y &&\
|
||||
apt-get install -y \
|
||||
procps build-essential dpkg-dev dpkg-cross \
|
||||
devscripts make ccache distcc
|
||||
RUN apt-get build-dep -y linux-source
|
||||
|
||||
#Cleanups
|
||||
RUN apt-get remove --purge -y exim*
|
||||
RUN apt-get autoremove --purge -y
|
||||
RUN apt-get clean -y && \
|
||||
devscripts make ccache distcc && \
|
||||
apt-get build-dep -y linux-source && \
|
||||
apt-get remove --purge -y exim* && \
|
||||
apt-get autoremove --purge -y && \
|
||||
apt-get clean -y && \
|
||||
rm -rf /var/lib/apt/lists/* && \
|
||||
rm -rf /var/cache/apt/*
|
||||
|
||||
|
||||
Reference in New Issue
Block a user