mirror of
https://codeberg.org/cunicu/cunicu.git
synced 2025-09-26 21:01:14 +08:00
24 lines
277 B
Docker
24 lines
277 B
Docker
FROM golang:1.19-alpine AS builder
|
|
|
|
RUN apk add \
|
|
git \
|
|
make \
|
|
protoc
|
|
|
|
COPY Makefile .
|
|
RUN make install-deps
|
|
|
|
WORKDIR /app
|
|
COPY go.mod ./
|
|
COPY go.sum ./
|
|
RUN go mod download
|
|
|
|
COPY . .
|
|
RUN make
|
|
|
|
FROM alpine:3.16
|
|
|
|
COPY --from=builder /app/wice /
|
|
|
|
ENTRYPOINT ["/wice"]
|