Select Git revision
-
Matthias Schiffer authored
While Podman automatically populates /etc/passwd and /etc/group with matching entries for the mapped host user, such a feature is missing from Docker. Install libnss-unknown, which will return passwd entries of the form "uid-1000" for all unknown UIDs, to avoid warnings and other weird behaviour that may occur when running as an unnamed user. `-o` must be passed to useradd now to allow non-unique user entries, as with libnss-unknown, every UID is considered occupied.
Matthias Schiffer authoredWhile Podman automatically populates /etc/passwd and /etc/group with matching entries for the mapped host user, such a feature is missing from Docker. Install libnss-unknown, which will return passwd entries of the form "uid-1000" for all unknown UIDs, to avoid warnings and other weird behaviour that may occur when running as an unnamed user. `-o` must be passed to useradd now to allow non-unique user entries, as with libnss-unknown, every UID is considered occupied.
Dockerfile 907 B
FROM debian:bookworm-slim
ARG DEBIAN_FRONTEND=noninteractive
RUN apt-get update && apt-get install -y --no-install-recommends \
ca-certificates \
file \
git \
python3 \
python3-distutils \
build-essential \
gawk \
unzip \
libncurses5-dev \
zlib1g-dev \
libssl-dev \
libelf-dev \
wget \
rsync \
time \
qemu-utils \
ecdsautils \
lua-check \
shellcheck \
libnss-unknown \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/*
RUN mkdir /tmp/ec &&\
wget -O /tmp/ec/ec-linux-amd64.tar.gz https://github.com/editorconfig-checker/editorconfig-checker/releases/download/2.7.0/ec-linux-amd64.tar.gz &&\
tar -xvzf /tmp/ec/ec-linux-amd64.tar.gz &&\
mv bin/ec-linux-amd64 /usr/local/bin/editorconfig-checker &&\
rm -rf /tmp/ec
RUN useradd -m -d /gluon -u 100 -g 100 -o gluon
USER gluon
VOLUME /gluon
WORKDIR /gluon