mirror of
https://github.com/filebrowser/filebrowser.git
synced 2024-06-07 23:00:43 +00:00
e5265b6632
Former-commit-id: 2b02497070be694a121f6ae8f7567ee521d2039f [formerly 6c301dfe46f6e1ebb9d92fa5251c23aa6a5c9f64] [formerly befd05696772a79c19330a4d3f0b4651c35802a4 [formerly 44d68a4868
]]
Former-commit-id: 9f8661bb18ac3230d4f65fc4c5c8ccf31122daf6 [formerly 683bb4fdbfc8c95f1e69382322a8f1132c3de457]
Former-commit-id: a7af592420975962f5556ba47801f9cd4f009fcc
24 lines
509 B
Docker
24 lines
509 B
Docker
FROM golang:alpine
|
|
|
|
COPY . /go/src/github.com/hacdias/filemanager
|
|
|
|
WORKDIR /go/src/github.com/hacdias/filemanager
|
|
RUN apk add --no-cache git
|
|
RUN go get ./...
|
|
|
|
WORKDIR /go/src/github.com/hacdias/filemanager/cmd/filemanager
|
|
RUN CGO_ENABLED=0 go build -a
|
|
RUN mv filemanager /go/bin/filemanager
|
|
|
|
FROM scratch
|
|
COPY --from=0 /go/bin/filemanager /filemanager
|
|
|
|
RUN mkdir -p /tmp
|
|
VOLUME /srv
|
|
EXPOSE 80
|
|
|
|
COPY Docker.json /config.json
|
|
|
|
ENTRYPOINT ["/filemanager"]
|
|
CMD ["--config", "/config.json"]
|