mirror of
https://github.com/gusaul/grpcox.git
synced 2024-12-25 01:41:11 +00:00
4fc2686973
remove dep files and fix docker build move docker build to latest image fix module url
19 lines
329 B
Docker
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"]
|