Skip to content

Instantly share code, notes, and snippets.

@shimont
Created March 20, 2016 17:05
Show Gist options
  • Save shimont/7af2a04aafb84f64a5c3 to your computer and use it in GitHub Desktop.
Save shimont/7af2a04aafb84f64a5c3 to your computer and use it in GitHub Desktop.
FROM golang:alpine
RUN adduser -D app -h /go/
ADD code/src /go/src/enrichment/
RUN chown -R app:app /go/
WORKDIR /go/src/enrichment/
RUN apk add --no-cache git \
&& go get -v -u github.com/tools/godep \
&& godep restore -v \
&& go install -v
USER app
ENTRYPOINT ["/go/bin/enrichment"]
EXPOSE 8000
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment