From 800a067638884561043059e2a5992e9569467f26 Mon Sep 17 00:00:00 2001 From: bunix42 Date: Thu, 5 May 2022 09:07:40 +0000 Subject: [PATCH] Update 'Dockerfile' --- Dockerfile | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/Dockerfile b/Dockerfile index 3c3a9d5..d79bb58 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,9 +1,13 @@ -FROM python:3 +FROM python:3-slim -RUN pip install --no-cache-dir pre-commit docker-compose +RUN apt-get update && apt-get install -y \ + git \ + docker \ + && rm -rf /var/lib/apt/lists/* -VOLUME /data +RUN pip install --no-cache-dir pre-commit docker-compose -WORKDIR /data +RUN mkdir -p /data/pre-commit-cache +ENV PRE_COMMIT_HOME=/data/pre-commit-cache -ENTRYPOINT ["pre-commit"] \ No newline at end of file +CMD ["pre-commit", "run", "--all-files"] \ No newline at end of file