Skip to content

Commit c4559e1

Browse files
committed
Use tini as init container in Dockerfile
1 parent c70444d commit c4559e1

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

Dockerfile

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,4 +21,10 @@ COPY requirements.txt .
2121
RUN pip install -r requirements.txt
2222

2323
COPY plan_monitor ./plan_monitor
24-
ENTRYPOINT ["python", "-m"]
24+
25+
ENV TINI_VERSION v0.19.0
26+
ADD https://github.com/krallin/tini/releases/download/${TINI_VERSION}/tini /tini
27+
RUN chmod +x /tini
28+
29+
ENTRYPOINT ["/tini", "--"]
30+
CMD ["python", "-m"]

0 commit comments

Comments
 (0)