This repository has been archived on 2025-11-20. You can view files and clone it, but cannot push or open issues or pull requests.
Files
kernel-configs/Dockerfile
2021-02-16 17:44:40 +01:00

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/*