added group to user clause, workdir clause and expose clause

This commit is contained in:
Ricard Bejarano 2019-05-26 22:48:51 +02:00
parent 38866691ee
commit 8e86b88113
No known key found for this signature in database
GPG key ID: 5A5105DD6B91CA19
2 changed files with 6 additions and 2 deletions

View file

@ -74,7 +74,9 @@ COPY --from=build /tmp/nginx/objs/nginx /nginx
COPY rootfs / COPY rootfs /
USER nginx:nginx
WORKDIR /
EXPOSE 80/tcp
STOPSIGNAL SIGTERM STOPSIGNAL SIGTERM
ENTRYPOINT ["/nginx"] ENTRYPOINT ["/nginx"]
CMD ["-g", "daemon off;"] CMD ["-g", "daemon off;"]

View file

@ -63,7 +63,9 @@ COPY --from=build /tmp/nginx/objs/nginx /nginx
COPY rootfs / COPY rootfs /
USER nginx:nginx
WORKDIR /
EXPOSE 80/tcp
STOPSIGNAL SIGTERM STOPSIGNAL SIGTERM
ENTRYPOINT ["/nginx"] ENTRYPOINT ["/nginx"]
CMD ["-g", "daemon off;"] CMD ["-g", "daemon off;"]