diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..7cd054e --- /dev/null +++ b/Dockerfile @@ -0,0 +1,25 @@ +# Build stage +FROM golang:1.25-alpine AS builder + +RUN apk add --no-cache make + +WORKDIR /app + +COPY go.mod go.sum ./ + +RUN go mod download + +COPY . . + +RUN make build + +# Runtime stage +FROM alpine:latest + +RUN apk --no-cache add ca-certificates + +WORKDIR /root/ + +COPY --from=builder /app/srs-proxy . + +CMD ["./srs-proxy"] \ No newline at end of file