filebrowser/Dockerfile

25 lines
517 B
Docker
Raw Normal View History

2017-10-30 15:24:06 +00:00
FROM golang:alpine
COPY . /go/src/github.com/filebrowser/filebrowser
2017-10-30 15:24:06 +00:00
WORKDIR /go/src/github.com/filebrowser/filebrowser
2017-10-30 15:24:06 +00:00
RUN apk add --no-cache git
RUN go get ./...
WORKDIR /go/src/github.com/filebrowser/filebrowser/cmd/filebrowser
2017-10-30 15:24:06 +00:00
RUN CGO_ENABLED=0 go build -a
RUN mv filebrowser /go/bin/filebrowser
2017-10-30 15:24:06 +00:00
FROM scratch
COPY --from=0 /go/bin/filebrowser /filebrowser
2017-10-30 15:24:06 +00:00
2017-11-11 07:08:12 +00:00
VOLUME /tmp
2017-10-30 15:24:06 +00:00
VOLUME /srv
EXPOSE 80
COPY Docker.json /config.json
ENTRYPOINT ["/filebrowser"]
2017-10-30 15:24:06 +00:00
CMD ["--config", "/config.json"]