Set the current UID and GID of the executing user as build arguments for the build of the container, so that environments with other UIDs and GIDs than 1000 are supported.
41 lines
933 B
Docker
41 lines
933 B
Docker
FROM debian:bullseye-slim
|
|
|
|
ARG DUID=1000
|
|
ARG DGID=1000
|
|
|
|
ARG DEBIAN_FRONTEND=noninteractive
|
|
RUN apt-get update && apt-get install -y --no-install-recommends \
|
|
ca-certificates \
|
|
file \
|
|
git \
|
|
subversion \
|
|
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
|
|
|
|
RUN groupadd -g $DGID gluon && useradd -g $DGID -u $DUID -d /gluon gluon
|
|
USER gluon
|
|
|
|
VOLUME /gluon
|
|
WORKDIR /gluon
|