Skip to content

Commit

Permalink
Improve docker build caching
Browse files Browse the repository at this point in the history
  • Loading branch information
devste committed May 4, 2019
1 parent fa042db commit 8574c25
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Dockerfile.alpine.3.9
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
FROM alpine:3.9
ENTRYPOINT ["pre-commit", "run", "--config", "/.pre-commit-config.yaml"]
RUN apk add --no-cache \
git \
python3
COPY requirements.txt .
RUN pip3 install --no-cache-dir -r requirements.txt
RUN pre-commit sample-config > /.pre-commit-config.yaml
ENTRYPOINT ["pre-commit", "run", "--config", "/.pre-commit-config.yaml"]

0 comments on commit 8574c25

Please sign in to comment.