From d20549afc816179ae575443a37e2a387f4653f4d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=8E=96=E4=BA=96=E4=BC=8D?= Date: Thu, 1 Jul 2021 15:52:00 +0800 Subject: [PATCH] Update Dockerfile MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit start.sh改用绝对路径 --- Dockerfile | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Dockerfile b/Dockerfile index 03a78b74..60cf6332 100644 --- a/Dockerfile +++ b/Dockerfile @@ -112,11 +112,11 @@ VOLUME /mindoc EXPOSE 8181/tcp ENV ZONEINFO=/mindoc/lib/time/zoneinfo.zip -RUN chmod +x ./start.sh +RUN chmod +x /mindoc/start.sh -CMD ["bash", "./start.sh"] +CMD ["bash", "/mindoc/start.sh"] # https://docs.docker.com/engine/reference/commandline/build/#options # docker build --progress plain --rm --build-arg TAG=2.0.1 --tag gsw945/mindoc:2.0.1 . # https://docs.docker.com/engine/reference/commandline/run/#options -# docker run --rm -it -p 8181:8181 -v "mindoc-docker":"/mindoc" --name mindoc -e MINDOC_ENABLE_EXPORT=true -d gsw945/mindoc:2.0.1 \ No newline at end of file +# docker run --rm -it -p 8181:8181 -v "mindoc-docker":"/mindoc" --name mindoc -e MINDOC_ENABLE_EXPORT=true -d gsw945/mindoc:2.0.1