mirror of
https://github.com/luzifer-docker/mdwiki.git
synced 2024-12-20 12:11:17 +00:00
Fix data path
Signed-off-by: Knut Ahlers <knut@ahlers.me>
This commit is contained in:
parent
ce47b0aad8
commit
ec09c0fc5a
2 changed files with 3 additions and 3 deletions
|
@ -13,8 +13,8 @@ RUN set -ex \
|
||||||
|
|
||||||
COPY docker-entrypoint.sh /
|
COPY docker-entrypoint.sh /
|
||||||
|
|
||||||
VOLUME /md-app
|
VOLUME /data
|
||||||
WORKDIR /md-app
|
WORKDIR /data
|
||||||
|
|
||||||
EXPOSE 80
|
EXPOSE 80
|
||||||
|
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
set -euo pipefail
|
set -euo pipefail
|
||||||
|
|
||||||
if [ "${1:-}" = 'serve' ]; then
|
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
|
exec python -m http.server 80
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue