Skip to content

Commit

Permalink
Merge pull request #12 from SanderDelden/master
Browse files Browse the repository at this point in the history
Update Alpine & Python
  • Loading branch information
cytopia committed Mar 17, 2022
2 parents a10791c + c0b38c6 commit 578d385
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM alpine:3.13 as builder
FROM alpine:3.15 as builder

RUN set -x \
&& apk add --no-cache \
Expand All @@ -23,7 +23,7 @@ RUN set -x \
&& find /usr/lib/ -name '*.pyc' -print0 | xargs -0 -n1 rm -rf


FROM alpine:3.13 as production
FROM alpine:3.15 as production
ARG VERSION
# https://github.com/opencontainers/image-spec/blob/master/annotations.md
#LABEL "org.opencontainers.image.created"=""
Expand All @@ -47,7 +47,7 @@ RUN set -x \
&& find /usr/lib/ -name '__pycache__' -print0 | xargs -0 -n1 rm -rf \
&& find /usr/lib/ -name '*.pyc' -print0 | xargs -0 -n1 rm -rf

COPY --from=builder /usr/lib/python3.8/site-packages/ /usr/lib/python3.8/site-packages/
COPY --from=builder /usr/lib/python3.9/site-packages/ /usr/lib/python3.9/site-packages/
COPY --from=builder /usr/bin/pylint /usr/bin/pylint
WORKDIR /data
ENTRYPOINT ["pylint"]
Expand Down
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ _test-version:
| grep -Eo 'PyCQA/pylint/releases/tag/(pylint-)?(v)?[.0-9]+"' \
| grep -Eo "PyCQA/pylint/releases/tag/(pylint-)?(v)?[.0-9]+" \
| sed 's/.*tag\///g' \
| sort -u \
| sort -V \
| tail -1 \
| grep -Eo '[.0-9]+' \
)"; \
Expand Down

0 comments on commit 578d385

Please sign in to comment.