mirror of
https://codeberg.org/cunicu/cunicu.git
synced 2025-09-26 21:01:14 +08:00
16 lines
223 B
Docker
16 lines
223 B
Docker
FROM golang:1.16-alpine AS builder
|
|
|
|
WORKDIR /app
|
|
COPY go.mod ./
|
|
COPY go.sum ./
|
|
RUN go mod download
|
|
|
|
COPY wice/ ./wice/
|
|
RUN go build -o build/wice ./wice
|
|
|
|
FROM scratch
|
|
|
|
COPY --from=builder /app/build/wice /
|
|
|
|
CMD [ "/wice" ]
|