feat: update dockerfile
License: MIT Signed-off-by: Henrique Dias <hacdias@gmail.com>pull/601/head
parent
92fda0070c
commit
365eff8ca4
|
@ -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" ]
|
||||
|
|
|
@ -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 "$@"
|
Loading…
Reference in New Issue