feat(docker): adding docker image build support

This commit is contained in:
2025-10-13 09:57:25 +02:00
parent 0a66597018
commit be9f68c38c
6 changed files with 46 additions and 12 deletions

13
docker/Dockerfile.api Normal file
View File

@@ -0,0 +1,13 @@
FROM golang:latest AS builder
ARG CGO_ENABLED=0
WORKDIR /app
COPY go.mod go.sum ./
RUN go mod download
COPY . .
RUN go build
FROM scratch
COPY --from=builder /app/realz /realz
ENTRYPOINT ["/realz"]