container-pre-commit/Dockerfile
Renovate Bot fbd0274dd7
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
Renovate: Update dependency alpine_3_18/openssh-keygen to v9.3_p2-r1
2023-12-25 10:03:21 +00:00

31 lines
1.2 KiB
Docker

FROM python:3.12.1-alpine3.18
COPY --from=koalaman/shellcheck:v0.9.0 /bin/shellcheck /bin/
# renovate: datasource=repology depName=alpine_3_18/build-base versioning=loose
ENV BUILD_BASE_VERSION="0.5-r3"
# renovate: datasource=repology depName=alpine_3_18/gcc versioning=loose
ENV GCC_VERSION="12.2.1_git20220924-r10"
# renovate: datasource=repology depName=alpine_3_18/ruby versioning=loose
ENV RUBY_VERSION="3.2.2-r0"
# renovate: datasource=repology depName=alpine_3_18/git versioning=loose
ENV GIT_VERSION="2.40.1-r0"
# renovate: datasource=repology depName=alpine_3_18/openssh-keygen versioning=loose
ENV OPENSSH_KEYGEN_VERSION="9.3_p2-r1"
# renovate: datasource=pypi depName=pre-commit versioning=pep440
ENV PRE_COMMIT_VERSION="3.6.0"
# renovate: datasource=rubygems depName=mdl versioning=ruby
ENV MDL_VERSION="0.13.0"
RUN apk add --update --no-cache \
build-base="${BUILD_BASE_VERSION}" \
gcc="${GCC_VERSION}" \
ruby="${RUBY_VERSION}" \
git="${GIT_VERSION}" \
openssh-keygen="${OPENSSH_KEYGEN_VERSION}" \
&& \
pip install --no-cache-dir pre-commit=="${PRE_COMMIT_VERSION}" && \
gem install --no-document mdl -v "${MDL_VERSION}" && \
mkdir /data && \
git config --global --add safe.directory /data
WORKDIR /data