From 277f13a350a08fdc4e139d034f3a656f09fb56a4 Mon Sep 17 00:00:00 2001 From: Henrique Dias Date: Sat, 5 Jan 2019 23:47:56 +0000 Subject: [PATCH] feat: update dockerfile License: MIT Signed-off-by: Henrique Dias Former-commit-id: e6b5d4dae3b1c92e5f45d1871d2cf522ebe231da [formerly d96f427f565caeaa73d496f1cfe5797849cbfee6] [formerly ecdfa88ca15f22287b8a145b1a32deac51febf54 [formerly 365eff8ca43cbfaaba174acf8d8cd8a86f79b271]] Former-commit-id: 7035068a2d4532448ce5f99df3e44a56ef70abf0 [formerly 22078ce93001feb79a7fe835ab33298287ffb23b] Former-commit-id: 4d4576f98a9d992501e4ee7cd7d90a7dd319fabc --- Dockerfile | 5 ++--- docker-entrypoint.sh | 13 ------------- 2 files changed, 2 insertions(+), 16 deletions(-) delete mode 100644 docker-entrypoint.sh 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 "$@"