mirror of
https://github.com/zoriya/cish.git
synced 2025-12-06 07:16:16 +00:00
18 lines
291 B
Docker
18 lines
291 B
Docker
FROM golang:1.24 AS build
|
|
WORKDIR /app
|
|
|
|
COPY go.mod go.sum ./
|
|
RUN go mod download
|
|
|
|
COPY . .
|
|
RUN CGO_ENABLED=0 GOOS=linux go build -o /controller
|
|
|
|
FROM gcr.io/distroless/base-debian11
|
|
WORKDIR /app
|
|
EXPOSE 5677
|
|
USER nonroot:nonroot
|
|
|
|
COPY --from=build /keibi /app/keibi
|
|
|
|
CMD ["/app/controller"]
|