Skip to content

Commit

Permalink
fix docker SIGTERM (AcalaNetwork#62)
Browse files Browse the repository at this point in the history
  • Loading branch information
ermalkaleci authored Apr 26, 2023
1 parent a5b7aa2 commit 05fd6bb
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
1 change: 1 addition & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
target/
4 changes: 3 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@ RUN useradd -m -u 1000 -U -s /bin/sh -d /app docker

WORKDIR /app

RUN apt-get update && apt-get install tini

COPY --from=builder /app/target/release/subway /usr/local/bin
COPY ./config.yml /app/config.yml

Expand All @@ -28,4 +30,4 @@ RUN rm -rf /usr/lib/python* && \
USER docker
EXPOSE 9944

ENTRYPOINT ["/usr/local/bin/subway"]
ENTRYPOINT ["/usr/bin/tini", "--", "/usr/local/bin/subway"]

0 comments on commit 05fd6bb

Please sign in to comment.