mirror of
https://codeberg.org/cunicu/cunicu.git
synced 2026-04-22 22:57:04 +08:00
672770022c
Signed-off-by: Steffen Vogel <post@steffenvogel.de>
24 lines
281 B
Docker
24 lines
281 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/cunicu /
|
|
|
|
ENTRYPOINT ["/cunicu"]
|