filebrowser/Dockerfile

23 lines
468 B
Docker
Raw Normal View History

FROM golang:alpine
COPY . /go/src/github.com/hacdias/filemanager
2017-07-27 10:38:09 +00:00
WORKDIR /go/src/github.com/hacdias/filemanager
RUN apk add --no-cache git
RUN go get ./...
2017-07-27 10:38:09 +00:00
WORKDIR /go/src/github.com/hacdias/filemanager/cmd/filemanager
RUN CGO_ENABLED=0 go build -a
2017-08-04 13:10:23 +00:00
RUN mv filemanager /go/bin/filemanager
FROM scratch
COPY --from=0 /go/bin/filemanager /filemanager
2017-07-28 07:06:44 +00:00
VOLUME /srv
EXPOSE 80
COPY Docker.json /config.json
ENTRYPOINT ["/filemanager"]
CMD ["--config", "/config.json"]