1
0
mirror of https://github.com/gusaul/grpcox.git synced 2024-12-24 09:20:41 +00:00
grpcox/Dockerfile
edusolis 4fc2686973 Moving away from dep and into go modules
remove dep files and fix docker build
move docker build to latest image
fix module url
2019-10-11 16:08:39 -05:00

19 lines
329 B
Docker

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