Skip to content

Instantly share code, notes, and snippets.

@Ell
Created April 17, 2016 19:33
Show Gist options
  • Save Ell/26c5a93c700017afd77f73393ddfa472 to your computer and use it in GitHub Desktop.
Save Ell/26c5a93c700017afd77f73393ddfa472 to your computer and use it in GitHub Desktop.
FROM golang:alpine
EXPOSE 7070
RUN apk update
RUN apk --no-cache add git
RUN mkdir /app/
COPY ./config.toml /app/
COPY ./tracker/ $GOPATH/src/github.com/ell/tracker
WORKDIR $GOPATH/src/github.com/ell/tracker
RUN go get
RUN go build -v
RUN cp tracker /app/
WORKDIR /app
CMD ["./tracker"]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment