container-pre-commit/Dockerfile
Henrik Hüttemann b9ad296b03
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
Add user and drop privileges
2023-09-21 18:41:04 +02:00

17 lines
379 B
Docker

FROM python:3.11.5-alpine3.17
COPY --from=koalaman/shellcheck:v0.9.0 /bin/shellcheck /bin/
RUN apk add --update --no-cache \
build-base \
gcc \
ruby \
git \
openssh-keygen \
&& \
pip install --no-cache-dir pre-commit && \
gem install --no-document mdl && \
mkdir /data && \
adduser -D -g user user
USER user:user
WORKDIR /data