added group to user clause, workdir clause and expose clause
This commit is contained in:
parent
38866691ee
commit
8e86b88113
2 changed files with 6 additions and 2 deletions
|
@ -74,7 +74,9 @@ COPY --from=build /tmp/nginx/objs/nginx /nginx
|
|||
|
||||
COPY rootfs /
|
||||
|
||||
USER nginx:nginx
|
||||
WORKDIR /
|
||||
EXPOSE 80/tcp
|
||||
STOPSIGNAL SIGTERM
|
||||
|
||||
ENTRYPOINT ["/nginx"]
|
||||
CMD ["-g", "daemon off;"]
|
||||
|
|
|
@ -63,7 +63,9 @@ COPY --from=build /tmp/nginx/objs/nginx /nginx
|
|||
|
||||
COPY rootfs /
|
||||
|
||||
USER nginx:nginx
|
||||
WORKDIR /
|
||||
EXPOSE 80/tcp
|
||||
STOPSIGNAL SIGTERM
|
||||
|
||||
ENTRYPOINT ["/nginx"]
|
||||
CMD ["-g", "daemon off;"]
|
||||
|
|
Loading…
Add table
Reference in a new issue