From 99d961f8ae337b36f60acc1e9e3c3c1c1e0a29fe Mon Sep 17 00:00:00 2001 From: Steve Date: Fri, 3 Nov 2023 11:43:24 +0800 Subject: [PATCH] fix docker use tini --- Dockerfile | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/Dockerfile b/Dockerfile index d6db8a2..4f3262a 100644 --- a/Dockerfile +++ b/Dockerfile @@ -4,18 +4,16 @@ RUN apk update --no-cache RUN apk add --update gcc g++ libc6-compat RUN apk add --no-cache ca-certificates RUN apk add --no-cache tzdata +RUN apk add --no-cache tini ENV TZ Asia/Shanghai -WORKDIR /easy-admin COPY ./easy-admin /easy-admin COPY ./config/settings.demo.yml /config/settings.yml EXPOSE 8000 -RUN chmod +x ./easy-admin +RUN chmod +x /easy-admin -ENV TINI_VERSION v0.19.0 -ADD https://github.com/krallin/tini/releases/download/${TINI_VERSION}/tini /tini -RUN chmod +x /tini -ENTRYPOINT ["/tini", "--"] -CMD ["./easy-admin","server","-c", "/config/settings.yml"] \ No newline at end of file +ENTRYPOINT ["/sbin/tini", "--"] + +CMD ["/easy-admin","server","-c", "/config/settings.yml"] \ No newline at end of file