_
File size: 551 Bytes
e9bcfee
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
FROM gtstef/filebrowser:latest AS filebrowser-source
FROM nginx:alpine

RUN apk add --no-cache bash
COPY --from=filebrowser-source /fb/filebrowser /usr/local/bin/filebrowser
WORKDIR /tmp

RUN echo 'server { \
    listen 7860; \
    location / { \
        proxy_pass http://127.0.0.1:80; \
        proxy_set_header Host $host; \
        proxy_set_header X-Real-IP $remote_addr; \
    } \
}' > /etc/nginx/conf.d/default.conf
RUN echo '#!/bin/bash\n\
filebrowser & nginx -g "daemon off;"' > /run.sh && chmod +x /run.sh

EXPOSE 7860
ENTRYPOINT ["/run.sh"]