From 45c119627bb632222027625a84e21b386f8b2d56 Mon Sep 17 00:00:00 2001 From: boojack Date: Wed, 24 May 2023 20:08:47 +0800 Subject: [PATCH] chore: move flags into env variables (#1732) --- Dockerfile | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 9a63c975..d49e9f7f 100644 --- a/Dockerfile +++ b/Dockerfile @@ -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"]