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

Update Dockerfile

parent 14c32026
...@@ -26,15 +26,11 @@ RUN set -eux \ ...@@ -26,15 +26,11 @@ 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
# /kaniko/0/usr/lib/python3.8/site-packages
# hadolint ignore=DL3059
RUN find /kaniko -type d -print
# hadolint ignore=DL3059
RUN mkdir /kaniko/0
# hadolint ignore=DL3059 # hadolint ignore=DL3059
RUN mkdir /kaniko/twerk RUN mkdir -p /kaniko/0/usr/lib/python3.8/
# hadolint ignore=DL3059 # hadolint ignore=DL3059
RUN cp -r /usr/lib/python3.8/site-packages /kaniko/0/ RUN cp -r /usr/lib/python3.8/site-packages /kaniko/0/usr/lib/python3.8/
FROM alpine:3.13 as production FROM alpine:3.13 as production
...@@ -65,10 +61,10 @@ RUN set -eux \ ...@@ -65,10 +61,10 @@ 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
# /kaniko/0/usr/lib/python3.8/site-packages # hadolint ignore=DL3059
RUN ls -al / && ls -al /kaniko && ls -al /kaniko/0 && ls -al /kaniko/0/usr RUN find /kaniko -type d -print
#COPY --from=builder /usr/lib/python3.8/site-packages/ /usr/lib/python3.8/site-packages/ COPY --from=builder /usr/lib/python3.8/site-packages/ /usr/lib/python3.8/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