From ec09c0fc5ad1b6ac04e8fb02cef86b757ae6265f Mon Sep 17 00:00:00 2001 From: Knut Ahlers Date: Sun, 11 Mar 2018 21:16:11 +0100 Subject: [PATCH] Fix data path Signed-off-by: Knut Ahlers --- Dockerfile | 4 ++-- docker-entrypoint.sh | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Dockerfile b/Dockerfile index c32a0ed..cdd71fb 100644 --- a/Dockerfile +++ b/Dockerfile @@ -13,8 +13,8 @@ RUN set -ex \ COPY docker-entrypoint.sh / -VOLUME /md-app -WORKDIR /md-app +VOLUME /data +WORKDIR /data EXPOSE 80 diff --git a/docker-entrypoint.sh b/docker-entrypoint.sh index 64f942a..8b28e37 100755 --- a/docker-entrypoint.sh +++ b/docker-entrypoint.sh @@ -2,7 +2,7 @@ set -euo pipefail if [ "${1:-}" = 'serve' ]; then - cp /usr/src/mdwiki/mdwiki.html /md-app/index.html + cp /usr/src/mdwiki/mdwiki.html /data/index.html exec python -m http.server 80 fi