chore: add dockerfile

This commit is contained in:
Stevan Freeborn
2025-11-24 05:34:57 -06:00
parent cd62990e54
commit 0cac7174aa
+21
View File
@@ -0,0 +1,21 @@
FROM golang:1.25-alpine AS builder
WORKDIR /app
# Add go.sum if have deps
COPY go.mod ./
RUN go mod download
COPY . .
RUN CGO_ENABLED=0 GOOS=linux go build -o server ./cmd/web/main.go
FROM alpine:latest
WORKDIR /root/
COPY --from=builder /app/server .
EXPOSE 7777
CMD ["./server"]