Skip to content

Instantly share code, notes, and snippets.

@moemoe89
Created May 2, 2017 03:15
Show Gist options
  • Save moemoe89/ebda42409d624765dde566e1d5a2686d to your computer and use it in GitHub Desktop.
Save moemoe89/ebda42409d624765dde566e1d5a2686d to your computer and use it in GitHub Desktop.
Dockerfile for Go-Lang binary only
FROM golang:1.8.1
ENV GO_PROJECT /go/src/gitlab.com/go-practice-ci
ENV BIN_NAME go-practice-ci
RUN mkdir -p ${GO_PROJECT}
WORKDIR ${GO_PROJECT}
COPY ${BIN_NAME} ${GO_PROJECT}
ENTRYPOINT ["./go-practice-ci"]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment