filebrowser/Dockerfile

22 lines
456 B
Docker
Raw Normal View History

FROM golang:alpine
COPY . /go/src/github.com/hacdias/filemanager
2017-07-27 18:38:09 +08:00
WORKDIR /go/src/github.com/hacdias/filemanager
RUN apk add --no-cache git
RUN go get ./...
2017-07-27 18:38:09 +08:00
WORKDIR /go/src/github.com/hacdias/filemanager/cmd/filemanager
RUN go install
2017-07-28 15:06:44 +08:00
FROM alpine:latest
COPY --from=0 /go/bin/filemanager /usr/local/bin/filemanager
VOLUME /srv
EXPOSE 80
COPY Docker.json /etc/config.json
2017-07-28 15:06:44 +08:00
ENTRYPOINT ["/usr/local/bin/filemanager"]
CMD ["--config", "/etc/config.json"]