diff --git a/Dockerfile.alpine b/Dockerfile.alpine deleted file mode 120000 index 856402f..0000000 --- a/Dockerfile.alpine +++ /dev/null @@ -1 +0,0 @@ -Dockerfile.alpine.3.9 \ No newline at end of file diff --git a/Dockerfile.alpine b/Dockerfile.alpine new file mode 100644 index 0000000..c771fb7 --- /dev/null +++ b/Dockerfile.alpine @@ -0,0 +1,8 @@ +FROM alpine:3.14.0 +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 diff --git a/Dockerfile.alpine.3.9 b/Dockerfile.alpine.3.9 index d7e0df8..c771fb7 100644 --- a/Dockerfile.alpine.3.9 +++ b/Dockerfile.alpine.3.9 @@ -1,4 +1,4 @@ -FROM alpine:3.9 +FROM alpine:3.14.0 ENTRYPOINT ["pre-commit", "run", "--config", "/.pre-commit-config.yaml"] RUN apk add --no-cache \ git \