pull/250/head
Henrique Dias 2017-09-07 14:18:10 +01:00
commit e7bdba8948
No known key found for this signature in database
GPG Key ID: 936F5EB68D786730
1 changed files with 6 additions and 6 deletions

View File

@ -7,16 +7,16 @@ RUN apk add --no-cache git
RUN go get ./... RUN go get ./...
WORKDIR /go/src/github.com/hacdias/filemanager/cmd/filemanager WORKDIR /go/src/github.com/hacdias/filemanager/cmd/filemanager
RUN go build -ldflags "-X main.version=$(git tag -l --points-at HEAD)" RUN CGO_ENABLED=0 go build -a
RUN mv filemanager /go/bin/filemanager RUN mv filemanager /go/bin/filemanager
FROM alpine:latest FROM scratch
COPY --from=0 /go/bin/filemanager /usr/local/bin/filemanager COPY --from=0 /go/bin/filemanager /filemanager
VOLUME /srv VOLUME /srv
EXPOSE 80 EXPOSE 80
COPY Docker.json /etc/config.json COPY Docker.json /config.json
ENTRYPOINT ["/usr/local/bin/filemanager"] ENTRYPOINT ["/filemanager"]
CMD ["--config", "/etc/config.json"] CMD ["--config", "/config.json"]