diff options
Diffstat (limited to 'Dockerfile')
-rw-r--r-- | Dockerfile | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..28137e1 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,20 @@ +# Build stage +FROM golang:1.24 AS builder + +WORKDIR /usr/src/app + +COPY go.mod go.sum ./ +RUN go mod download + +COPY . . +RUN go build -v -o /usr/local/bin/app ./... + +# Final stage +FROM debian:12-slim + +RUN apt-get update && apt-get install -y ca-certificates +WORKDIR /usr/src/app + +COPY --from=builder /usr/local/bin/app /usr/local/bin/app + +CMD ["app"] |