mirror of
https://github.com/EpicMorg/docker-scripts.git
synced 2024-12-25 06:05:37 +03:00
58 lines
2.0 KiB
Docker
58 lines
2.0 KiB
Docker
|
FROM debian:jessie-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/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-key adv --keyserver keyserver.ubuntu.com --refresh-keys
|
||
|
|
||
|
RUN apt-get update && \
|
||
|
apt-get upgrade -y && \
|
||
|
apt-get dist-upgrade -y
|
||
|
|
||
|
RUN apt-key list | grep "expired: " | sed -ne 's|pub .*/\([^ ]*\) .*|\1|gp' | xargs -n1 apt-key adv --keyserver keyserver.ubuntu.com --recv-keys
|
||
|
|
||
|
##################################################################
|
||
|
# 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 \
|
||
|
console-cyrillic \
|
||
|
ca-certificates \
|
||
|
locales \
|
||
|
software-properties-common \
|
||
|
sudo
|
||
|
|
||
|
##################################################################
|
||
|
# 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
|