chore: move flags into env variables (#1732)

This commit is contained in:
boojack 2023-05-24 20:08:47 +08:00 committed by GitHub
parent 65890bc257
commit 45c119627b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -36,4 +36,7 @@ EXPOSE 5230
RUN mkdir -p /var/opt/memos
VOLUME /var/opt/memos
ENTRYPOINT ["./memos", "--mode", "prod", "--port", "5230"]
ENV MEMOS_MODE="prod"
ENV MEMOS_PORT="5230"
ENTRYPOINT ["./memos"]