diff --git a/Dockerfile b/Dockerfile index 6a61f2a..a2da015 100644 --- a/Dockerfile +++ b/Dockerfile @@ -8,6 +8,7 @@ ENV SMTP_PORT 1025 RUN apt-get update && \ DEBIAN_FRONTEND=noninteractive apt-get install -q -y \ libsqlite3-dev \ + wget \ ruby \ ruby-dev \ build-essential && \ @@ -17,10 +18,13 @@ RUN apt-get update && \ apt-get clean && \ rm -rf /var/lib/apt/lists +RUN wget -O /usr/local/bin/dumb-init https://github.com/Yelp/dumb-init/releases/download/v1.2.1/dumb-init_1.2.1_amd64 && chmod +x /usr/local/bin/dumb-init + RUN echo Europe/Brussels > /etc/timezone && dpkg-reconfigure --frontend noninteractive tzdata EXPOSE 1080 1025 COPY run.sh /run.sh RUN chmod +x /run.sh -CMD ["/run.sh"] \ No newline at end of file +ENTRYPOINT ["/usr/local/bin/dumb-init", "--"] +CMD ["/run.sh"]