Skip to content

Commit

Permalink
docker build for weaver
Browse files Browse the repository at this point in the history
  • Loading branch information
rShetty committed Feb 16, 2019
1 parent d662aa6 commit 5a5efee
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 2 deletions.
13 changes: 12 additions & 1 deletion Dockerfile
@@ -1,8 +1,19 @@
FROM golang:1.11.5-alpine
FROM golang:1.11.5-alpine as builder

ENV GO111MODULE on

RUN apk --no-cache add gcc g++ make ca-certificates git

RUN mkdir /weaver
WORKDIR /weaver

COPY . /weaver

RUN make setup
RUN make build

FROM alpine:latest
RUN apk --no-cache add ca-certificates
COPY --from=builder /weaver/out/weaver-server .

ENTRYPOINT ["/weaver-server", "start"]
2 changes: 1 addition & 1 deletion cmd/weaver-server/main.go
Expand Up @@ -26,7 +26,7 @@ func main() {
app.Description = "An Advanced HTTP Reverse Proxy with Dynamic Sharding Strategies"
app.Commands = []cli.Command{
{
Name: "server",
Name: "start",
Description: "Start weaver server",
Action: startWeaver,
},
Expand Down

0 comments on commit 5a5efee

Please sign in to comment.