21 lines
642 B
Docker
21 lines
642 B
Docker
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 apt-get update
|
|
RUN apt-get install -y \
|
|
procps build-essential dpkg-dev dpkg-cross \
|
|
devscripts make
|
|
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 && \
|
|
rm -rf /var/lib/apt/lists/* && \
|
|
rm -rf /var/cache/apt/*
|
|
|