diff --git a/Dockerfile b/Dockerfile index f73fc582..a4a97e36 100644 --- a/Dockerfile +++ b/Dockerfile @@ -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" ] diff --git a/docker-entrypoint.sh b/docker-entrypoint.sh deleted file mode 100644 index 2a3b7ffb..00000000 --- a/docker-entrypoint.sh +++ /dev/null @@ -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 "$@"