container-pre-commit/Dockerfile

17 lines
377 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 \
ruby-full \
git \
openssh-keygen \
&& \
gem install mdl --no-document && \
pip install pre-commit && \
mkdir /data && \
git config --global --add safe.directory /data
WORKDIR /data