refactor: STOPSIGNAL SIGQUIT for docker images (graceful shutdown)

basically these docker changes match the `graceful shutdown` feature
at docker level
This commit is contained in:
Jose Quintana
2021-10-30 01:13:35 +02:00
parent c16e7d50e5
commit ef52492d8d
2 changed files with 7 additions and 0 deletions

View File

@@ -19,7 +19,11 @@ COPY ./docker/alpine/entrypoint.sh /
COPY ./docker/public /public
EXPOSE 80
STOPSIGNAL SIGQUIT
ENTRYPOINT ["/entrypoint.sh"]
CMD ["static-web-server"]
# Metadata

View File

@@ -15,6 +15,9 @@ COPY --from=latest /usr/local/bin/static-web-server /
COPY ./docker/public /public
EXPOSE 80
STOPSIGNAL SIGQUIT
ENTRYPOINT ["/static-web-server"]
# Metadata