files commited on
Commit
e1ff27f
·
verified ·
1 Parent(s): 52c8daa

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +13 -8
Dockerfile CHANGED
@@ -1,13 +1,18 @@
1
  FROM debian:stable-slim
2
 
3
- RUN apt update
4
- RUN apt install -y curl ca-certificates
5
- RUN rm -frRv /var/lib/apt/lists/*
 
6
  RUN curl -fSL https://github.com/filebrowser/get/raw/master/get.sh | bash
7
- RUN curl -L https://github.com/rishikesh-suvarna/tunl.cc/releases/latest/download/tunl-linux-x64 > /tmp/tunl
8
- RUN chmod +x /tmp/tunl
9
 
10
- WORKDIR /tmp
11
- EXPOSE 7860
 
 
 
12
 
13
- CMD filebrowser -p 7860 --noauth & /tmp/tunl 7860 files
 
 
1
  FROM debian:stable-slim
2
 
3
+ RUN apt-get update && \
4
+ apt-get install -y curl ca-certificates && \
5
+ rm -frRv /var/lib/apt/lists/*
6
+
7
  RUN curl -fSL https://github.com/filebrowser/get/raw/master/get.sh | bash
8
+ RUN curl -L https://github.com/rishikesh-suvarna/tunl.cc/releases/latest/download/tunl-linux-x64 -o /usr/local/bin/tunl && \
9
+ chmod +x /usr/local/bin/tunl
10
 
11
+ WORKDIR /srv
12
+ RUN filebrowser config init -d /srv/filebrowser.db && \
13
+ filebrowser config set -d /srv/filebrowser.db --address 0.0.0.0 --port 7860 && \
14
+ filebrowser config set -d /srv/filebrowser.db --auth.method noauth && \
15
+ filebrowser config set -d /srv/filebrowser.db --root /srv
16
 
17
+ EXPOSE 7860
18
+ CMD filebrowser -d /srv/filebrowser.db & tunl 7860 files