Yuriko/Dockerfile

13 lines
216 B
Docker
Raw Permalink Normal View History

2021-05-07 12:46:41 +00:00
FROM golang:1.16-alpine AS build
WORKDIR /go/src/yuriko
COPY . .
RUN go get -d -v ./...
RUN CGO_ENABLED=0 GOOS=linux go build -o /yuriko
FROM scratch AS runtime
COPY --from=build /yuriko /
ENTRYPOINT ["/yuriko"]