system-images/contrib/Dockerfile

39 lines
868 B
Docker

ARG REGISTRY=docker.io
FROM ${REGISTRY}/debian/eol:jessie-slim
# Arguments used after FROM must be specified again
ARG UID
RUN ( echo "deb http://archive.debian.org/debian jessie main"; \
echo "deb http://archive.debian.org/debian-security jessie/updates main" ) \
> /etc/apt/sources.list
RUN apt-get update && \
apt-get install -y --no-install-recommends \
ca-certificates \
build-essential \
chrpath \
cpio \
diffstat \
file \
gawk \
git \
locales \
make \
python \
python3 \
texinfo \
wget \
&& \
apt-get clean
# Disable DST Root CA X3
# https://letsencrypt.org/docs/dst-root-ca-x3-expiration-september-2021/
RUN sed -i '/^mozilla\/DST_Root_CA_X3.crt$/ s/^/!/' /etc/ca-certificates.conf && \
update-ca-certificates
RUN echo "en_US.UTF-8 UTF-8" > /etc/locale.gen && \
locale-gen
RUN useradd --uid=${UID} -m user
USER user