mirror of
https://github.com/docker/docker-bench-security.git
synced 2025-01-18 16:22:33 +01:00
perf(dockerfile): move copy at the end to improve cache invalidation
This commit is contained in:
parent
be2a7b6b6e
commit
bbe32c5bec
1 changed files with 3 additions and 3 deletions
|
@ -5,9 +5,6 @@ LABEL \
|
||||||
org.label-schema.url="https://dockerbench.com" \
|
org.label-schema.url="https://dockerbench.com" \
|
||||||
org.label-schema.vcs-url="https://github.com/docker/docker-bench-security.git"
|
org.label-schema.vcs-url="https://github.com/docker/docker-bench-security.git"
|
||||||
|
|
||||||
COPY ./*.sh /usr/local/bin/
|
|
||||||
COPY ./tests/*.sh /usr/local/bin/tests/
|
|
||||||
|
|
||||||
# Switch to the HTTPS endpoint for the apk repositories
|
# Switch to the HTTPS endpoint for the apk repositories
|
||||||
# https://github.com/gliderlabs/docker-alpine/issues/184
|
# https://github.com/gliderlabs/docker-alpine/issues/184
|
||||||
RUN \
|
RUN \
|
||||||
|
@ -17,6 +14,9 @@ RUN \
|
||||||
dumb-init && \
|
dumb-init && \
|
||||||
rm -rf /usr/bin/docker?*
|
rm -rf /usr/bin/docker?*
|
||||||
|
|
||||||
|
COPY ./*.sh /usr/local/bin/
|
||||||
|
COPY ./tests/*.sh /usr/local/bin/tests/
|
||||||
|
|
||||||
WORKDIR /usr/local/bin
|
WORKDIR /usr/local/bin
|
||||||
|
|
||||||
ENTRYPOINT [ "/usr/bin/dumb-init", "docker-bench-security.sh" ]
|
ENTRYPOINT [ "/usr/bin/dumb-init", "docker-bench-security.sh" ]
|
||||||
|
|
Loading…
Reference in a new issue