diff --git a/Dockerfile b/Dockerfile index 55753659..f177bfb3 100644 --- a/Dockerfile +++ b/Dockerfile @@ -29,6 +29,4 @@ COPY --from=frontend /frontend-build/dist /usr/local/memos/web/dist # Directory to store the data, which can be referenced as the mounting point. RUN mkdir -p /var/opt/memos -CMD ["-mode", "release", "-port", "8080", "-data", "/var/opt/memos"] - ENTRYPOINT ["./memos"] diff --git a/docs/deploy/docker-deploy-guide.md b/docs/deploy/docker-deploy-guide.md index 96e87a3d..9991696b 100644 --- a/docs/deploy/docker-deploy-guide.md +++ b/docs/deploy/docker-deploy-guide.md @@ -11,7 +11,7 @@ 2. pull and run docker image: ```docker - docker run --name memos --restart always --publish 8080:8080 --volume ~/path/to/your/data/:/var/opt/memos/ neosmemo/memos:next -mode release + docker run --name memos --publish 8080:8080 --volume ~/path/to/your/data/:/var/opt/memos -e mode=release -e data=/var/opt/memos neosmemo/memos:next ``` The default user account is `guest` with password `secret`.