Skip to content

Commit

Permalink
add tini init pid 1 process in front of entrypoint
Browse files Browse the repository at this point in the history
speeds up container shutdown, correctly forwards signals
  • Loading branch information
lreiher committed Apr 11, 2024
1 parent fae0f2c commit faa3a9e
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion docker/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -220,8 +220,11 @@ RUN source /opt/ros/$ROS_DISTRO/setup.bash && \
RUN echo "source /opt/ros/$ROS_DISTRO/setup.bash" >> ~/.bashrc

# set entrypoint
ENV TINI_VERSION v0.19.0
ADD https://github.com/krallin/tini/releases/download/${TINI_VERSION}/tini-${TARGETARCH} /tini
RUN chmod +x /tini
COPY docker/docker-ros/docker/entrypoint.sh /
ENTRYPOINT ["/entrypoint.sh"]
ENTRYPOINT ["/tini", "--", "/entrypoint.sh"]

############ dev ###############################################################
FROM dependencies-install as dev
Expand Down

0 comments on commit faa3a9e

Please sign in to comment.