container-pre-commit/Dockerfile

18 lines
379 B
Text
Raw Normal View History

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 \
2023-09-21 18:40:48 +02:00
ruby \
git \
openssh-keygen \
&& \
2023-09-21 18:40:48 +02:00
pip install --no-cache-dir pre-commit && \
gem install --no-document mdl && \
mkdir /data && \
2023-09-21 18:40:48 +02:00
adduser -D -g user user
2023-09-21 18:40:48 +02:00
USER user:user
WORKDIR /data