2024-07-24 15:02:38 +02:00
|
|
|
FROM python:3.12.4-alpine3.20@sha256:7f15e22f496c65cffbbac5e30e7e98d60f3e3b9cc5ee5d51cf3c55ed604787c8
|
2023-09-20 18:54:54 +02:00
|
|
|
|
2024-06-04 11:52:58 +02:00
|
|
|
# renovate: datasource=repology depName=alpine_3_20/build-base versioning=loose
|
2023-09-22 14:55:28 +02:00
|
|
|
ENV BUILD_BASE_VERSION="0.5-r3"
|
2024-06-04 11:52:58 +02:00
|
|
|
# renovate: datasource=repology depName=alpine_3_20/gcc versioning=loose
|
|
|
|
ENV GCC_VERSION="13.2.1_git20240309-r0"
|
|
|
|
# renovate: datasource=repology depName=alpine_3_20/ruby versioning=loose
|
2024-06-25 09:02:53 +02:00
|
|
|
ENV RUBY_VERSION="3.3.3-r0"
|
2024-06-04 11:52:58 +02:00
|
|
|
# renovate: datasource=repology depName=alpine_3_20/git versioning=loose
|
|
|
|
ENV GIT_VERSION="2.45.2-r0"
|
|
|
|
# renovate: datasource=repology depName=alpine_3_20/openssh-keygen versioning=loose
|
2024-07-03 12:02:20 +02:00
|
|
|
ENV OPENSSH_KEYGEN_VERSION="9.7_p1-r4"
|
2023-09-22 14:49:03 +02:00
|
|
|
# renovate: datasource=pypi depName=pre-commit versioning=pep440
|
2024-07-29 09:03:18 +02:00
|
|
|
ENV PRE_COMMIT_VERSION="3.8.0"
|
2023-09-22 14:49:03 +02:00
|
|
|
|
2024-06-19 17:18:17 +02:00
|
|
|
RUN mkdir /data /tmp/pre-commit
|
|
|
|
COPY .pre-commit-config.yaml /tmp/pre-commit
|
|
|
|
|
2023-09-20 18:54:54 +02:00
|
|
|
RUN apk add --update --no-cache \
|
2023-09-22 14:49:03 +02:00
|
|
|
build-base="${BUILD_BASE_VERSION}" \
|
|
|
|
gcc="${GCC_VERSION}" \
|
2024-05-17 15:46:52 +02:00
|
|
|
ruby-dev="${RUBY_VERSION}" \
|
2023-09-22 14:49:03 +02:00
|
|
|
git="${GIT_VERSION}" \
|
|
|
|
openssh-keygen="${OPENSSH_KEYGEN_VERSION}" \
|
2023-09-20 18:54:54 +02:00
|
|
|
&& \
|
2023-09-25 17:38:04 +02:00
|
|
|
pip install --no-cache-dir pre-commit=="${PRE_COMMIT_VERSION}" && \
|
2024-06-19 17:18:17 +02:00
|
|
|
git config --global --add safe.directory /data && \
|
|
|
|
cd /tmp/pre-commit && \
|
|
|
|
git init --initial-branch main && \
|
|
|
|
pre-commit install --install-hooks && \
|
|
|
|
rm -rf /tmp/pre-commit
|
2023-09-20 18:54:54 +02:00
|
|
|
|
|
|
|
WORKDIR /data
|