Skip to content

Commit 6ca6938

Browse files
committed
dockerfile: run as non PID 1
Signed-off-by: Miguel Molina <[email protected]>
1 parent 911b9ae commit 6ca6938

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

Dockerfile

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,10 +19,17 @@ ENV GITBASE_USER=gitbase
1919
ENV GITBASE_PASSWORD=""
2020
EXPOSE 3306
2121

22-
RUN apt-get update && apt-get install libxml2-dev git -y \
22+
ENV TINI_VERSION v0.17.0
23+
ADD https://github.com/krallin/tini/releases/download/${TINI_VERSION}/tini /tini
24+
RUN chmod +x /tini
25+
26+
RUN apt-get update \
27+
&& apt-get install libxml2-dev git -y \
2328
&& apt-get clean \
2429
&& rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
2530

31+
ENTRYPOINT ["/tini", "--"]
32+
2633
CMD gitbase server -v \
2734
--host=0.0.0.0 \
2835
--port=3306 \

0 commit comments

Comments
 (0)