Skip to content
Snippets Groups Projects
Commit df71710a authored by Vincent Hatakeyama's avatar Vincent Hatakeyama
Browse files

:tada:

parents
No related branches found
No related tags found
No related merge requests found
# Compilation
FROM golang:1.11
RUN go get -u github.com/prsolucoes/gohc
RUN cd $GOPATH/src/github.com/prsolucoes/gohc && make deps
RUN cd $GOPATH/src/github.com/prsolucoes/gohc && CGO_ENABLED=0 go build -ldflags "-w -extldflags "-static""
# binary only
FROM joeshaw/busybox-nonroot
LABEL maintainer="release@xcg-consulting.fr"
ARG REVISION=""
ARG CREATED=""
LABEL org.opencontainers.image.revision=$REVISION
LABEL org.opencontainers.image.vendor="XCG"
LABEL org.opencontainers.image.version=""
LABEL org.opencontainers.image.authors="PRSoluções"
LABEL org.opencontainers.image.created=$CREATED
LABEL org.opencontainers.image.title="GoHC"
EXPOSE 8080
COPY --from=0 /go/src/github.com/prsolucoes/gohc/gohc /usr/bin/gohc
VOLUME ["/etc/gohc"]
CMD ["gohc", "-f", "/etc/gohc/config.json"]
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment