feat: update dockerfile

License: MIT
Signed-off-by: Henrique Dias <hacdias@gmail.com>
pull/601/head
Henrique Dias 2019-01-05 23:47:56 +00:00
parent 92fda0070c
commit 365eff8ca4
2 changed files with 2 additions and 16 deletions

View File

@ -7,7 +7,6 @@ VOLUME /srv
EXPOSE 80
COPY filebrowser /filebrowser
COPY docker-entrypoint.sh /entrypoint.sh
ENTRYPOINT [ "/entrypoint.sh" ]
CMD [ "run" ]
ENTRYPOINT [ "/filebrowser", "--database database.db", "--scope /srv" ]
CMD [ "--port 80" ]

View File

@ -1,13 +0,0 @@
#!/bin/sh
set -e
if [ "$1" = 'run' ]; then
if [ ! -f "/database.db" ]; then
filebrowser -s /src
fi
exec filemanager --port 80
fi
exec filemanager --port 80 "$@"