mirror of
https://github.com/Damillora/Yuriko.git
synced 2024-12-22 21:43:46 +00:00
13 lines
216 B
Docker
13 lines
216 B
Docker
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"]
|