container-pre-commit/Dockerfile

32 lines
1.4 KiB
Text
Raw Normal View History

2024-02-12 08:04:08 +01:00
FROM python:3.12.2-alpine3.19@sha256:1a0501213b470de000d8432b3caab9d8de5489e9443c2cc7ccaa6b0aa5c3148e
COPY --from=koalaman/shellcheck:v0.9.0@sha256:f35e8987b02760d4e76fc99a68ad5c42cc10bb32f3dd2143a3cf92f1e5446a45 /bin/shellcheck /bin/
2024-01-18 14:53:54 +01:00
# renovate: datasource=repology depName=alpine_3_19/build-base versioning=loose
2023-09-22 14:55:28 +02:00
ENV BUILD_BASE_VERSION="0.5-r3"
2024-01-18 14:53:54 +01:00
# renovate: datasource=repology depName=alpine_3_19/gcc versioning=loose
ENV GCC_VERSION="13.2.1_git20231014-r0"
# renovate: datasource=repology depName=alpine_3_19/ruby versioning=loose
ENV RUBY_VERSION="3.2.2-r1"
# renovate: datasource=repology depName=alpine_3_19/git versioning=loose
ENV GIT_VERSION="2.43.0-r0"
# renovate: datasource=repology depName=alpine_3_19/openssh-keygen versioning=loose
ENV OPENSSH_KEYGEN_VERSION="9.6_p1-r0"
2023-09-22 14:49:03 +02:00
# renovate: datasource=pypi depName=pre-commit versioning=pep440
2024-02-12 08:04:08 +01:00
ENV PRE_COMMIT_VERSION="3.6.1"
2023-09-22 14:49:03 +02:00
# renovate: datasource=rubygems depName=mdl versioning=ruby
ENV MDL_VERSION="0.13.0"
2023-09-22 14:49:03 +02:00
RUN apk add --update --no-cache \
2023-09-22 14:49:03 +02:00
build-base="${BUILD_BASE_VERSION}" \
gcc="${GCC_VERSION}" \
ruby="${RUBY_VERSION}" \
2023-09-22 14:49:03 +02:00
git="${GIT_VERSION}" \
openssh-keygen="${OPENSSH_KEYGEN_VERSION}" \
&& \
pip install --no-cache-dir pre-commit=="${PRE_COMMIT_VERSION}" && \
2023-09-22 14:49:03 +02:00
gem install --no-document mdl -v "${MDL_VERSION}" && \
mkdir /data && \
git config --global --add safe.directory /data
WORKDIR /data