1
0
mirror of https://github.com/gusaul/grpcox.git synced 2024-11-17 06:26:56 +00:00
grpcox/Dockerfile

19 lines
329 B
Docker
Raw Normal View History

FROM golang:1.13-alpine AS builder
2019-03-25 03:47:41 +00:00
ENV GO111MODULE=on
#WORKDIR /go/src/github.com/gusaul/grpcox
WORKDIR /src
2019-03-25 03:47:41 +00:00
COPY . ./
RUN go mod tidy && CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -o grpcox grpcox.go
2019-03-25 03:47:41 +00:00
FROM alpine
COPY ./index /index
COPY --from=builder /src/grpcox ./
RUN mkdir /log
2019-03-25 03:47:41 +00:00
EXPOSE 6969
ENTRYPOINT ["./grpcox"]