diff --git a/glibc/Dockerfile b/glibc/Dockerfile index f1cfe37..be4e004 100644 --- a/glibc/Dockerfile +++ b/glibc/Dockerfile @@ -60,8 +60,6 @@ RUN cd /tmp/nginx && \ FROM scratch -COPY rootfs / - COPY --from=build /lib/x86_64-linux-gnu/libc.so.6 \ /lib/x86_64-linux-gnu/libcrypt.so.1 \ /lib/x86_64-linux-gnu/libdl.so.2 \ @@ -74,6 +72,8 @@ COPY --from=build /lib64/ld-linux-x86-64.so.2 \ /lib64/ COPY --from=build /tmp/nginx/objs/nginx /nginx +COPY rootfs / + STOPSIGNAL SIGTERM ENTRYPOINT ["/nginx", "-g", "daemon off;"] diff --git a/musl/Dockerfile b/musl/Dockerfile index 7bd4928..63bfe4a 100644 --- a/musl/Dockerfile +++ b/musl/Dockerfile @@ -59,10 +59,10 @@ RUN cd /tmp/nginx && \ FROM scratch -COPY rootfs / - COPY --from=build /tmp/nginx/objs/nginx /nginx +COPY rootfs / + STOPSIGNAL SIGTERM ENTRYPOINT ["/nginx", "-g", "daemon off;"]