Skip to content

Commit

Permalink
Docker updates
Browse files Browse the repository at this point in the history
  • Loading branch information
derekcollison committed Aug 7, 2015
1 parent f7ea964 commit 461d2a2
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 1 deletion.
13 changes: 13 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
FROM google/golang:1.4

MAINTAINER Derek Collison <derek@apcera.com>

COPY . /gopath/src/github.com/nats-io/gnatsd
WORKDIR /gopath/src/github.com/nats-io/gnatsd

RUN CGO_ENABLED=0 go install -v -a -tags netgo -installsuffix netgo -ldflags "-s -w -X github.com/nats-io/gnatsd/version.GITCOMMIT `git rev-parse --short HEAD`"

EXPOSE 4222 8222
ENTRYPOINT ["gnatsd"]
CMD ["--help"]

2 changes: 1 addition & 1 deletion docker/Dockerfile.final
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,4 @@ ADD gnatsd /gnatsd
CMD []
ENTRYPOINT ["/gnatsd", "-p", "4222", "-m", "8333"]

EXPOSE 4222 8333
EXPOSE 4222 8333

0 comments on commit 461d2a2

Please sign in to comment.