diff options
| -rw-r--r-- | Dockerfile | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..88111c6 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,12 @@ +FROM golang:1.23 AS builder +WORKDIR /build +COPY go.mod go.sum ./ +RUN go mod download +COPY . . +RUN CGO_ENABLED=0 go build -o confplanner + +FROM scratch AS production +WORKDIR /app +COPY --from=builder /build/confplanner ./ +EXPOSE 4000 +CMD ["/app/confplanner"] |
