Commit cee1f7f3 authored by Christoph Weyer's avatar Christoph Weyer
Browse files

Switch Alpine version to v3.16.0

parent ce7660ad
FROM alpine:3.13.10 as builder FROM alpine:3.16.0 as builder
# ignore warning about pining version # ignore warning about pining version
# hadolint ignore=DL3018 # hadolint ignore=DL3018
...@@ -28,12 +28,7 @@ RUN set -eux \ ...@@ -28,12 +28,7 @@ RUN set -eux \
&& find /usr/lib/ -name '*.pyc' -print0 | xargs -0 -n1 rm -rf && find /usr/lib/ -name '*.pyc' -print0 | xargs -0 -n1 rm -rf
# hadolint ignore=DL3059 FROM alpine:3.16.0 as production
# RUN mkdir -p /kaniko/0/usr/lib/python3.8/
# hadolint ignore=DL3059
# RUN cp -r /usr/lib/python3.8/site-packages /kaniko/0/usr/lib/python3.8/
FROM alpine:3.13.10 as production
# define ARG variable after FROM # define ARG variable after FROM
ARG DOCKER_USER="nonroot" ARG DOCKER_USER="nonroot"
...@@ -73,7 +68,7 @@ RUN set -eux && \ ...@@ -73,7 +68,7 @@ RUN set -eux && \
find /usr/lib/ -name '__pycache__' -print0 | xargs -0 -n1 rm -rf && \ find /usr/lib/ -name '__pycache__' -print0 | xargs -0 -n1 rm -rf && \
find /usr/lib/ -name '*.pyc' -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.10/site-packages/ /usr/lib/python3.10/site-packages/
COPY --from=builder /usr/bin/ansible-lint /usr/bin/ansible-lint 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 /usr/bin/ansible
COPY --from=builder /usr/bin/ansible-connection /usr/bin/ansible-connection COPY --from=builder /usr/bin/ansible-connection /usr/bin/ansible-connection
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment