This commit is contained in:
parent
0dc9a790f5
commit
800a067638
14
Dockerfile
14
Dockerfile
@ -1,9 +1,13 @@
|
||||
FROM python:3
|
||||
FROM python:3-slim
|
||||
|
||||
RUN apt-get update && apt-get install -y \
|
||||
git \
|
||||
docker \
|
||||
&& rm -rf /var/lib/apt/lists/*
|
||||
|
||||
RUN pip install --no-cache-dir pre-commit docker-compose
|
||||
|
||||
VOLUME /data
|
||||
RUN mkdir -p /data/pre-commit-cache
|
||||
ENV PRE_COMMIT_HOME=/data/pre-commit-cache
|
||||
|
||||
WORKDIR /data
|
||||
|
||||
ENTRYPOINT ["pre-commit"]
|
||||
CMD ["pre-commit", "run", "--all-files"]
|
Loading…
Reference in New Issue
Block a user