Skip to content
Snippets Groups Projects
Verified Commit dc493fb1 authored by Nik | Klampfradler's avatar Nik | Klampfradler
Browse files

[Docker] Add dumb-init so we get correct signal processing to uWSGI

En passant, this removes the need to force the entrypoint away if
wanting to spawn a shell in the container
parent 6ab83669
No related branches found
No related tags found
1 merge request!525[Docker] Rewrite entrypoint
......@@ -25,6 +25,7 @@ RUN apt-get -y update && \
eatmydata apt-get -y upgrade && \
eatmydata apt-get install -y --no-install-recommends \
build-essential \
dumb-init \
gettext \
libpq5 \
libpq-dev \
......@@ -54,7 +55,8 @@ VOLUME /var/lib/aleksis
# Define entrypoint and uWSGI running on port 8000
EXPOSE 8000
COPY docker-entrypoint.sh /usr/local/bin/entrypoint.sh
ENTRYPOINT ["/usr/local/bin/entrypoint.sh"]
ENTRYPOINT ["/usr/bin/dumb-init", "--"]
CMD ["/usr/local/bin/entrypoint.sh"]
# Install assets
FROM core as assets
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment