Add in the app and workflow
This commit is contained in:
13
Containerfile
Normal file
13
Containerfile
Normal 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"]
|
||||
|
||||
Reference in New Issue
Block a user