2022-09-09 05:18:51 +03:00
|
|
|
FROM debian/eol:squeeze-slim
|
2022-09-09 04:45:10 +03:00
|
|
|
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 /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 \
|
|
|
|
aptitude \
|
|
|
|
bash \
|
|
|
|
binutils \
|
|
|
|
gnupg \
|
|
|
|
gnupg2 \
|
|
|
|
console-cyrillic \
|
|
|
|
ca-certificates \
|
|
|
|
locales \
|
2022-09-09 05:18:51 +03:00
|
|
|
# software-properties-common \
|
2022-09-09 04:45:10 +03:00
|
|
|
sudo
|
|
|
|
|
|
|
|
RUN apt-key list | grep "expired: " | sed -ne 's|pub .*/\([^ ]*\) .*|\1|gp' | xargs -n1 apt-key adv --keyserver keyserver.ubuntu.com --recv-keys
|
|
|
|
RUN apt-key adv --keyserver keyserver.ubuntu.com --refresh-keys
|
|
|
|
|
|
|
|
RUN update-ca-certificates
|
|
|
|
|
|
|
|
##################################################################
|
|
|
|
# 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
|