The new user `gluon` gets UID 1000 and GID 1000 and cannot write to the mounted gluon directory unless the calling user has the same UID. On Linux only the first non admin user gets UID 1000, so docker and podman fail for all other users. On macOS there is typically no user with UID 1000, so docker and podman fail for all users. When no `gluon` user is created, a default user with the same UID and GID as the calling user is used and everything works fine. Signed-off-by: Stefan Weil <sw@weilnetz.de>
34 lines
802 B
Docker
34 lines
802 B
Docker
FROM debian:bullseye-slim
|
|
|
|
ARG DEBIAN_FRONTEND=noninteractive
|
|
RUN apt-get update && apt-get install -y --no-install-recommends \
|
|
ca-certificates \
|
|
file \
|
|
git \
|
|
python3 \
|
|
build-essential \
|
|
gawk \
|
|
unzip \
|
|
libncurses5-dev \
|
|
zlib1g-dev \
|
|
libssl-dev \
|
|
libelf-dev \
|
|
wget \
|
|
rsync \
|
|
time \
|
|
qemu-utils \
|
|
ecdsautils \
|
|
lua-check \
|
|
shellcheck \
|
|
&& 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
|
|
|
|
VOLUME /gluon
|
|
WORKDIR /gluon
|