Update Dockerfile

start.sh改用绝对路径
pull/712/head
玖亖伍 2021-07-01 15:52:00 +08:00 committed by GitHub
parent 4b7f3206d5
commit d20549afc8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 3 deletions

View File

@ -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
# docker run --rm -it -p 8181:8181 -v "mindoc-docker":"/mindoc" --name mindoc -e MINDOC_ENABLE_EXPORT=true -d gsw945/mindoc:2.0.1