12 lines
281 B
Docker
12 lines
281 B
Docker
FROM python:3
|
|
|
|
RUN apt-get update && apt-get install -y \
|
|
docker \
|
|
&& rm -rf /var/lib/apt/lists/*
|
|
|
|
RUN pip install --no-cache-dir pre-commit docker-compose
|
|
|
|
RUN mkdir -p /data/pre-commit-cache
|
|
ENV PRE_COMMIT_HOME=/data/pre-commit-cache
|
|
|
|
CMD ["pre-commit", "run", "--all-files"] |