Skip to content

Commit

Permalink
Dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
dm03514 committed Dec 7, 2019
1 parent 754f225 commit 04feed9
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
8 changes: 5 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,15 +1,17 @@
FROM golang:1.12
FROM golang:1.13 as builder

WORKDIR /go/src/github.com/ImpactInsights/valuestream
COPY . .

RUN GO111MODULE=on go get -d -v ./...
RUN GO111MODULE=on go install -v ./...

EXPOSE 5000
FROM ubuntu

COPY --from=builder /go/bin/valuestream /usr/local/bin

RUN useradd -m vs
USER vs

CMD valuestream -addr=":"$PORT
CMD valuestream

3 changes: 3 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -53,4 +53,7 @@ test-service-events:
-tags=service \
./eventsources/... -count=1 -p 1

docker-image:
docker build -f Dockerfile -t valuestream .

.PHONY: test-unit start-stack fmt

0 comments on commit 04feed9

Please sign in to comment.