Skip to content

Instantly share code, notes, and snippets.

@shimont
Created March 20, 2016 17:05
Show Gist options
  • Select an option

  • Save shimont/7af2a04aafb84f64a5c3 to your computer and use it in GitHub Desktop.

Select an option

Save shimont/7af2a04aafb84f64a5c3 to your computer and use it in GitHub Desktop.

Revisions

  1. shimont created this gist Mar 20, 2016.
    20 changes: 20 additions & 0 deletions gistfile1.txt
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,20 @@
    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