-
Notifications
You must be signed in to change notification settings - Fork 30
/
Dockerfile
37 lines (26 loc) · 1005 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
FROM alpine as builder
ARG VERSION
COPY get.sh get.sh
RUN apk add bash \
&& ./get.sh $VERSION
FROM alpine:3
ARG BUILD_DATE
ARG VCS_REF
LABEL maintainer="hurlenko" \
org.label-schema.build-date=$BUILD_DATE \
org.label-schema.name="filebrowser" \
org.label-schema.description="Web File Browser which can be used as a middleware or standalone app" \
org.label-schema.version=$VERSION \
org.label-schema.url="https://github.com/hurlenko/filebrowser-docker" \
org.label-schema.license="MIT" \
org.label-schema.vcs-ref=$VCS_REF \
org.label-schema.vcs-url="https://github.com/hurlenko/filebrowser-docker" \
org.label-schema.vcs-type="Git" \
org.label-schema.vendor="hurlenko" \
org.label-schema.schema-version="1.0"
COPY --from=builder /usr/local/bin/filebrowser /filebrowser
RUN mkdir -p -m 777 /config \
&& mkdir -p -m 777 /data
EXPOSE 8080
ENTRYPOINT ["/filebrowser"]
CMD ["--root=/data", "--address=0.0.0.0", "--database=/config/filebrowser.db"]