Prototype Dockerfile

This commit is contained in:
kacarmichael 2025-05-28 01:18:46 -05:00
parent 5781ab7a97
commit aa3e609add

22
Dockerfile Normal file
View File

@ -0,0 +1,22 @@
FROM golang:1.24-alpine AS builder
WORKDIR /app
COPY go.mod go.sum ./
RUN go mod download
COPY . .
RUN go build -o /main
FROM alpine:latest
RUN apk --no-cache add ca-certificates
WORKDIR /app
COPY --from=builder /main .
EXPOSE 8080
CMD ["./main"]