diff --git a/.dockerignore b/.dockerignore new file mode 100644 index 0000000..2f7896d --- /dev/null +++ b/.dockerignore @@ -0,0 +1 @@ +target/ diff --git a/Dockerfile b/Dockerfile index cee0db8..3e3ff73 100644 --- a/Dockerfile +++ b/Dockerfile @@ -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 @@ -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"]