mirror of
https://github.com/EpicMorg/docker-scripts.git
synced 2024-12-26 06:35:40 +03:00
61 lines
2.2 KiB
Docker
61 lines
2.2 KiB
Docker
|
FROM debian:bullseye-slim
|
||
|
LABEL maintainer="EpicMorg DevTeam, developer@epicm.org"
|
||
|
ARG DEBIAN_FRONTEND=noninteractive
|
||
|
|
||
|
##################################################################
|
||
|
# prepare system
|
||
|
##################################################################
|
||
|
RUN for i in $(seq 1 8); do mkdir -p "/usr/share/man/man${i}"; done
|
||
|
|
||
|
##################################################################
|
||
|
# sources list
|
||
|
##################################################################
|
||
|
RUN rm -rfv /etc/apt/sources.list
|
||
|
RUN rm -rfv /etc/locale.gen
|
||
|
|
||
|
COPY etc/apt/trusted.gpg.d/deb-multimedia-keyring.gpg /etc/apt/trusted.gpg.d/deb-multimedia-keyring.gpg
|
||
|
COPY etc/apt/apt.conf.d/99-no-check-valid-until /etc/apt/apt.conf.d/99-no-check-valid-until
|
||
|
COPY etc/apt/sources.list /etc/apt/sources.list
|
||
|
COPY etc/locale.gen.full /etc/locale.gen
|
||
|
|
||
|
RUN apt-get update && \
|
||
|
apt-get upgrade -y && \
|
||
|
apt-get dist-upgrade -y
|
||
|
|
||
|
##################################################################
|
||
|
# installing utils
|
||
|
##################################################################
|
||
|
RUN echo 'debconf debconf/frontend select Noninteractive' | debconf-set-selections && \
|
||
|
apt-get install -y --allow-unauthenticated \
|
||
|
apt-transport-https \
|
||
|
apt-utils \
|
||
|
gnupg \
|
||
|
gnupg1 \
|
||
|
gnupg2 \
|
||
|
aptitude \
|
||
|
bash \
|
||
|
binutils \
|
||
|
console-cyrillic \
|
||
|
ca-certificates \
|
||
|
locales \
|
||
|
software-properties-common \
|
||
|
sudo
|
||
|
|
||
|
RUN apt-key adv --keyserver keyserver.ubuntu.com --refresh-keys
|
||
|
RUN apt-key list | grep "expired: " | sed -ne 's|pub .*/\([^ ]*\) .*|\1|gp' | xargs -n1 apt-key adv --keyserver keyserver.ubuntu.com --recv-keys
|
||
|
|
||
|
##################################################################
|
||
|
# update locales
|
||
|
##################################################################
|
||
|
RUN locale-gen
|
||
|
|
||
|
##################################################################
|
||
|
# cleanup
|
||
|
##################################################################
|
||
|
RUN apt-get purge policykit-1 -y && \
|
||
|
apt-get clean -y && \
|
||
|
apt-get autoclean -y && \
|
||
|
rm -rfv /var/lib/apt/lists/* && \
|
||
|
rm -rfv /tmp/* && \
|
||
|
rm -rfv /var/cache/apt/archives/*.deb
|