Fix data path

Signed-off-by: Knut Ahlers <knut@ahlers.me>
This commit is contained in:
Knut Ahlers 2018-03-11 21:16:11 +01:00
parent ce47b0aad8
commit ec09c0fc5a
Signed by: luzifer
GPG key ID: DC2729FDD34BE99E
2 changed files with 3 additions and 3 deletions

View file

@ -13,8 +13,8 @@ RUN set -ex \
COPY docker-entrypoint.sh /
VOLUME /md-app
WORKDIR /md-app
VOLUME /data
WORKDIR /data
EXPOSE 80

View file

@ -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