mirror of
https://codeberg.org/cunicu/cunicu.git
synced 2025-09-26 21:01:14 +08:00
27 lines
393 B
Docker
27 lines
393 B
Docker
# SPDX-FileCopyrightText: 2023-2025 Steffen Vogel <post@steffenvogel.de>
|
|
# SPDX-License-Identifier: Apache-2.0
|
|
|
|
FROM golang:1.23-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.21
|
|
|
|
COPY --from=builder /app/cunicu /
|
|
|
|
ENTRYPOINT ["/cunicu"]
|