mirror of
https://github.com/filebrowser/filebrowser.git
synced 2024-06-07 23:00:43 +00:00
7b58b1fbf6
* refactor
* updates
* add circle
* update circle
* fix circle
Former-commit-id: bdc8ecd8766e35f9ab7a9e8bd9dd62206bffb37b [formerly 0d28166061f5c8e573e916797abef67e33a83cf2] [formerly efd85c08040565ba75e06b3d7d7b16366d36325a [formerly 613a3f2811
]]
Former-commit-id: eca6ad66d686a6737d81dca5e00f1d46a75a217a [formerly a987246f7c0940e8812cb4d0c1b0514b708e8c44]
Former-commit-id: fd882cf0d2216dcfb035a703011eeb1a2f79da9f
25 lines
517 B
Docker
25 lines
517 B
Docker
|
|
FROM golang:alpine
|
|
|
|
COPY . /go/src/github.com/filebrowser/filebrowser
|
|
|
|
WORKDIR /go/src/github.com/filebrowser/filebrowser
|
|
RUN apk add --no-cache git
|
|
RUN go get ./...
|
|
|
|
WORKDIR /go/src/github.com/filebrowser/filebrowser/cmd/filebrowser
|
|
RUN CGO_ENABLED=0 go build -a
|
|
RUN mv filebrowser /go/bin/filebrowser
|
|
|
|
FROM scratch
|
|
COPY --from=0 /go/bin/filebrowser /filebrowser
|
|
|
|
VOLUME /tmp
|
|
VOLUME /srv
|
|
EXPOSE 80
|
|
|
|
COPY Docker.json /config.json
|
|
|
|
ENTRYPOINT ["/filebrowser"]
|
|
CMD ["--config", "/config.json"]
|