feat: update dockerfile
License: MIT
Signed-off-by: Henrique Dias <hacdias@gmail.com>
Former-commit-id: e6b5d4dae3b1c92e5f45d1871d2cf522ebe231da [formerly d96f427f565caeaa73d496f1cfe5797849cbfee6] [formerly ecdfa88ca15f22287b8a145b1a32deac51febf54 [formerly 365eff8ca4
]]
Former-commit-id: 7035068a2d4532448ce5f99df3e44a56ef70abf0 [formerly 22078ce93001feb79a7fe835ab33298287ffb23b]
Former-commit-id: 4d4576f98a9d992501e4ee7cd7d90a7dd319fabc
This commit is contained in:
parent
ea434ffc04
commit
277f13a350
|
@ -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