Add in the app and workflow

This commit is contained in:
2025-11-14 16:11:07 -07:00
parent 30bde08b01
commit 1571f2a25e
3 changed files with 111 additions and 0 deletions

13
Containerfile Normal file
View File

@@ -0,0 +1,13 @@
# Stage 1: Build the Go binary
FROM golang:1.21-alpine AS builder
WORKDIR /app
COPY . .
RUN go build -o catapp .
# Stage 2: Minimal runtime image
FROM alpine:latest
WORKDIR /app
COPY --from=builder /app/catapp .
EXPOSE 8080
CMD ["./catapp"]