Skip to content

Commit

Permalink
Merge pull request #24 from nicelizhi/dev
Browse files Browse the repository at this point in the history
fix docker use tini
  • Loading branch information
xxl4 authored Nov 3, 2023
2 parents 1f0091f + 99d961f commit 1fa17cb
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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"]
ENTRYPOINT ["/sbin/tini", "--"]

CMD ["/easy-admin","server","-c", "/config/settings.yml"]

0 comments on commit 1fa17cb

Please sign in to comment.