set the "COPY rootfs /" statement to be the last COPY statement during packaging stage
This commit is contained in:
parent
9c74bb78b6
commit
3ff01a74bd
2 changed files with 4 additions and 4 deletions
|
@ -60,8 +60,6 @@ RUN cd /tmp/nginx && \
|
||||||
|
|
||||||
FROM scratch
|
FROM scratch
|
||||||
|
|
||||||
COPY rootfs /
|
|
||||||
|
|
||||||
COPY --from=build /lib/x86_64-linux-gnu/libc.so.6 \
|
COPY --from=build /lib/x86_64-linux-gnu/libc.so.6 \
|
||||||
/lib/x86_64-linux-gnu/libcrypt.so.1 \
|
/lib/x86_64-linux-gnu/libcrypt.so.1 \
|
||||||
/lib/x86_64-linux-gnu/libdl.so.2 \
|
/lib/x86_64-linux-gnu/libdl.so.2 \
|
||||||
|
@ -74,6 +72,8 @@ COPY --from=build /lib64/ld-linux-x86-64.so.2 \
|
||||||
/lib64/
|
/lib64/
|
||||||
COPY --from=build /tmp/nginx/objs/nginx /nginx
|
COPY --from=build /tmp/nginx/objs/nginx /nginx
|
||||||
|
|
||||||
|
COPY rootfs /
|
||||||
|
|
||||||
STOPSIGNAL SIGTERM
|
STOPSIGNAL SIGTERM
|
||||||
|
|
||||||
ENTRYPOINT ["/nginx", "-g", "daemon off;"]
|
ENTRYPOINT ["/nginx", "-g", "daemon off;"]
|
||||||
|
|
|
@ -59,10 +59,10 @@ RUN cd /tmp/nginx && \
|
||||||
|
|
||||||
FROM scratch
|
FROM scratch
|
||||||
|
|
||||||
COPY rootfs /
|
|
||||||
|
|
||||||
COPY --from=build /tmp/nginx/objs/nginx /nginx
|
COPY --from=build /tmp/nginx/objs/nginx /nginx
|
||||||
|
|
||||||
|
COPY rootfs /
|
||||||
|
|
||||||
STOPSIGNAL SIGTERM
|
STOPSIGNAL SIGTERM
|
||||||
|
|
||||||
ENTRYPOINT ["/nginx", "-g", "daemon off;"]
|
ENTRYPOINT ["/nginx", "-g", "daemon off;"]
|
||||||
|
|
Loading…
Add table
Reference in a new issue