Skip to content

Instantly share code, notes, and snippets.

@josdirksen
Created February 8, 2016 13:43
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save josdirksen/4b4e778df316e4d8c517 to your computer and use it in GitHub Desktop.
Save josdirksen/4b4e778df316e4d8c517 to your computer and use it in GitHub Desktop.
FROM golang:latest
COPY src/ /go/src/
COPY resources/config.json /
EXPOSE 9000
# If external packages are needed, install them manually. Not needed if installed in the GOPATH
RUN go get github.com/fsouza/go-dockerclient && go install github.com/fsouza/go-dockerclient
RUN go get github.com/shirou/gopsutil && go install github.com/shirou/gopsutil
WORKDIR src
RUN go build -o /app/main github.com/josdirksen/slackproxy/slack-proxy.go
CMD ["/app/main", "--config", "/config.json"]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment