Skip to content

Commit

Permalink
fix(docker): issued dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
greenhat616 committed Sep 13, 2023
1 parent 0d2bfc7 commit af52c73
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,13 +1,16 @@
FROM alpine:3.18
ENV TZ Asia/Shanghai
RUN apk add alpine-conf tzdata && \
RUN apk add alpine-conf tzdata dumb-init && \
/sbin/setup-timezone -z Asia/Shanghai && \
apk del alpine-conf

ENV WORKDIR /app
VOLUME $WORKDIR/data
ADD config.example.toml /app/config
ADD Moe /app
ENTRYPOINT ["sh", "-c", "/Moe", "start"]
ADD config.example.toml $WORKDIR/data/
ADD Moe $WORKDIR
WORKDIR $WORKDIR

ENTRYPOINT ["dumb-init", "--"]
CMD ["./Moe"]


0 comments on commit af52c73

Please sign in to comment.