13 lines
208 B
Docker
13 lines
208 B
Docker
FROM golang:1.25.3 AS builder
|
|
|
|
WORKDIR /app
|
|
COPY . .
|
|
RUN CGO_ENABLED=0 GOOS=linux GOARCH=amd64 \
|
|
go build -o app ./cmd/main.go
|
|
|
|
FROM alpine:3.19
|
|
|
|
WORKDIR /app
|
|
COPY --from=builder /app/app .
|
|
|
|
CMD ["./app"] |