mirror of
https://github.com/luzifer-docker/mdwiki.git
synced 2024-09-19 11:32:56 +00:00
Fix data path
Signed-off-by: Knut Ahlers <knut@ahlers.me>
This commit is contained in:
parent
ce47b0aad8
commit
ec09c0fc5a
@ -13,8 +13,8 @@ RUN set -ex \
|
||||
|
||||
COPY docker-entrypoint.sh /
|
||||
|
||||
VOLUME /md-app
|
||||
WORKDIR /md-app
|
||||
VOLUME /data
|
||||
WORKDIR /data
|
||||
|
||||
EXPOSE 80
|
||||
|
||||
|
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user