15/Dockerfile

16 lines
193 B
Text
Raw Permalink Normal View History

2023-07-26 11:51:25 +03:00
FROM golang:1.20-alpine
WORKDIR /app
COPY go.mod go.sum ./
RUN go mod download
COPY . .
2023-07-26 11:56:59 +03:00
RUN go test ./...
2023-07-26 11:51:25 +03:00
RUN cd ./cli && CGO_ENABLED=0 GOOS=linux go build -o 15
ENTRYPOINT ["./cli/15"]