Skip to content

Instantly share code, notes, and snippets.

@josdirksen
Created February 8, 2016 13:43
Show Gist options
  • Select an option

  • Save josdirksen/4b4e778df316e4d8c517 to your computer and use it in GitHub Desktop.

Select an option

Save josdirksen/4b4e778df316e4d8c517 to your computer and use it in GitHub Desktop.

Revisions

  1. josdirksen created this gist Feb 8, 2016.
    13 changes: 13 additions & 0 deletions slack-proxy-DockerFile
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,13 @@
    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"]