Henrik Hüttemann
7b022827a1
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
33 lines
1.3 KiB
Docker
33 lines
1.3 KiB
Docker
FROM python:3.12.4-alpine3.20@sha256:a982997504b8ec596f553d78f4de4b961bbdf5254e0177f6e99bb34f4ef16f95
|
|
|
|
# renovate: datasource=repology depName=alpine_3_20/build-base versioning=loose
|
|
ENV BUILD_BASE_VERSION="0.5-r3"
|
|
# 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
|
|
ENV RUBY_VERSION="3.3.1-r0"
|
|
# 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
|
|
ENV OPENSSH_KEYGEN_VERSION="9.7_p1-r3"
|
|
# renovate: datasource=pypi depName=pre-commit versioning=pep440
|
|
ENV PRE_COMMIT_VERSION="3.7.1"
|
|
|
|
RUN mkdir /data /tmp/pre-commit
|
|
COPY .pre-commit-config.yaml /tmp/pre-commit
|
|
|
|
RUN apk add --update --no-cache \
|
|
build-base="${BUILD_BASE_VERSION}" \
|
|
gcc="${GCC_VERSION}" \
|
|
ruby-dev="${RUBY_VERSION}" \
|
|
git="${GIT_VERSION}" \
|
|
openssh-keygen="${OPENSSH_KEYGEN_VERSION}" \
|
|
&& \
|
|
pip install --no-cache-dir pre-commit=="${PRE_COMMIT_VERSION}" && \
|
|
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
|
|
|
|
WORKDIR /data
|