mirror of
https://codeberg.org/cunicu/cunicu.git
synced 2024-07-10 11:06:35 +08:00
27 lines
388 B
Docker
27 lines
388 B
Docker
# SPDX-FileCopyrightText: 2023 Steffen Vogel <post@steffenvogel.de>
|
|
# SPDX-License-Identifier: Apache-2.0
|
|
|
|
FROM golang:1.22-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.20
|
|
|
|
COPY --from=builder /app/cunicu /
|
|
|
|
ENTRYPOINT ["/cunicu"]
|