Skip to content

Commit

Permalink
Move stopsignal in Dockerfiles
Browse files Browse the repository at this point in the history
  • Loading branch information
pleshakov committed Apr 5, 2021
1 parent b231350 commit 46b6aea
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 1 addition & 2 deletions build/Dockerfile
Expand Up @@ -284,6 +284,7 @@ COPY internal/configs/version1/nginx$PLUS.ingress.tmpl \

EXPOSE 80 443

STOPSIGNAL SIGTERM
ENTRYPOINT ["/nginx-ingress"]


Expand All @@ -301,13 +302,11 @@ RUN CGO_ENABLED=0 GOFLAGS='-mod=vendor' \
FROM files AS container
COPY --chown=nginx:0 --from=builder /nginx-ingress /

STOPSIGNAL SIGTERM
USER nginx


############################################# Create image with nginx-ingress built locally #############################################
FROM files AS local
COPY --chown=nginx:0 nginx-ingress /

STOPSIGNAL SIGTERM
USER nginx
2 changes: 1 addition & 1 deletion build/DockerfileWithAppProtectForPlusForOpenShift
Expand Up @@ -113,9 +113,9 @@ COPY internal/configs/version1/nginx-plus.ingress.tmpl \
RUN mkdir licenses
COPY LICENSE /licenses

STOPSIGNAL SIGTERM
USER nginx

STOPSIGNAL SIGTERM
ENTRYPOINT ["/nginx-ingress"]


Expand Down

0 comments on commit 46b6aea

Please sign in to comment.