diff options
| author | Leonardo Bishop <me@leonardobishop.com> | 2025-01-17 14:01:38 +0000 |
|---|---|---|
| committer | Leonardo Bishop <me@leonardobishop.com> | 2025-01-17 14:01:38 +0000 |
| commit | 5e7ce6cbae81a1b6e46fe6738dc10039a06bec95 (patch) | |
| tree | c69f3ec46ac92fe1b9c7c43b467add98b319d5f9 /Dockerfile | |
| parent | c00b690bd6f600554a1404e692bd9e4373325d27 (diff) | |
Add dockerfile
Diffstat (limited to 'Dockerfile')
| -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"] |
