init commit

This commit is contained in:
2026-03-06 15:50:39 -07:00
commit 5b279865a1
5 changed files with 413 additions and 0 deletions
+16
View File
@@ -0,0 +1,16 @@
# builder stage
FROM golang:1.21-alpine AS builder
WORKDIR /app
COPY go.mod go.sum ./
RUN go mod download
COPY . .
RUN go build -o /server ./cmd/server
# final image
FROM alpine:latest
RUN apk --no-cache add ca-certificates
COPY --from=builder /server /server
EXPOSE 8080
ENTRYPOINT ["/server"]