2022-05-05 09:13:56 +00:00
|
|
|
FROM python:3
|
2022-05-04 20:22:56 +00:00
|
|
|
|
2022-05-05 10:57:45 +00:00
|
|
|
RUN curl -L https://github.com/hadolint/hadolint/releases/download/v2.10.0/hadolint-Linux-x86_64 > /usr/local/bin/hadolint \
|
|
|
|
&& chmod +x /usr/local/bin/hadolint
|
2022-05-04 20:25:18 +00:00
|
|
|
|
2022-05-09 07:47:24 +00:00
|
|
|
RUN apt-get update \
|
|
|
|
&& apt-get install --no-install-recommends -y ruby \
|
|
|
|
&& rm -rf /var/lib/apt/lists/*
|
|
|
|
|
2022-05-05 09:07:40 +00:00
|
|
|
RUN pip install --no-cache-dir pre-commit docker-compose
|
2022-05-04 20:25:18 +00:00
|
|
|
|
2022-05-05 09:07:40 +00:00
|
|
|
RUN mkdir -p /data/pre-commit-cache
|
|
|
|
ENV PRE_COMMIT_HOME=/data/pre-commit-cache
|
2022-05-04 20:25:18 +00:00
|
|
|
|
2022-05-05 09:07:40 +00:00
|
|
|
CMD ["pre-commit", "run", "--all-files"]
|