From 50698f1b6c4840e043ff29323e6bceb4caacb04e Mon Sep 17 00:00:00 2001 From: Ivan Kozlovic Date: Fri, 5 Aug 2016 14:20:01 -0600 Subject: [PATCH] [ADDED] Dockerfile [ci skip] This is a first step in getting a Docker image for NATS Streaming. A repo will soon be created to generate the official image. --- Dockerfile | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 Dockerfile diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 00000000..7b0f68d3 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,12 @@ +FROM golang:1.6.3 + +MAINTAINER Ivan Kozlovic + +COPY . /go/src/github.com/nats-io/nats-streaming-server +WORKDIR /go/src/github.com/nats-io/nats-streaming-server + +RUN CGO_ENABLED=0 go install -v -a -tags netgo -installsuffix netgo -ldflags "-s -w -X github.com/nats-io/nats-streaming-server/version.GITCOMMIT=`git rev-parse --short HEAD`" + +EXPOSE 4222 8222 +ENTRYPOINT ["nats-streaming-server"] +CMD ["--help"]