Skip to content
This repository was archived by the owner on Jul 7, 2023. It is now read-only.

Adding dumb-init #6

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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 && \
Expand All @@ -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"]
ENTRYPOINT ["/usr/local/bin/dumb-init", "--"]
CMD ["/run.sh"]