Skip to content

Commit

Permalink
update Dockerfile.latest to alpine:3.18
Browse files Browse the repository at this point in the history
  • Loading branch information
Tomáš Kuba committed Sep 7, 2023
1 parent 2ed4b32 commit aac2612
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Dockerfiles/Dockerfile.latest
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM alpine:3.16 as builder
FROM alpine:3.18 as builder

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


FROM alpine:3.16 as production
FROM alpine:3.18 as production
ARG VERSION
# https://github.com/opencontainers/image-spec/blob/master/annotations.md
#LABEL "org.opencontainers.image.created"=""
Expand All @@ -55,7 +55,7 @@ RUN set -eux \
&& 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.10/site-packages/ /usr/lib/python3.10/site-packages/
COPY --from=builder /usr/lib/python3.11/site-packages/ /usr/lib/python3.11/site-packages/
COPY --from=builder /usr/bin/ansible-lint /usr/bin/ansible-lint
COPY --from=builder /usr/bin/ansible /usr/bin/ansible
COPY --from=builder /usr/bin/ansible-config /usr/bin/ansible-config
Expand Down

0 comments on commit aac2612

Please sign in to comment.