Spaces:
Runtime error
Runtime error
File size: 312 Bytes
a4e4e4b | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 | # Build stage
FROM golang:1.22-alpine AS builder
WORKDIR /app
COPY go.mod ./
RUN go mod download
COPY . .
RUN CGO_ENABLED=0 GOOS=linux go build -o blaster main.go
# Run stage
FROM alpine:latest
RUN apk add --no-cache ca-certificates
WORKDIR /app
COPY --from=builder /app/blaster .
EXPOSE 7860
CMD ["./blaster"]
|