This commit is contained in:
2026-02-19 00:21:17 +03:00
commit a2a0978f77
7 changed files with 309 additions and 0 deletions

24
Dockerfile Normal file
View File

@@ -0,0 +1,24 @@
FROM golang:1.25 AS builder
WORKDIR /app
RUN apt-get update && apt-get install -y \
gcc \
libc6-dev \
&& rm -rf /var/lib/apt/lists/*
COPY go.mod go.sum ./
RUN go mod download
COPY . .
RUN CGO_ENABLED=1 go build -ldflags="-linkmode external -extldflags '-static' -s -w" -o podcaster .
FROM scratch
COPY --from=builder /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/ca-certificates.crt
COPY --from=builder /app/podcaster /readlist
EXPOSE 5000
ENTRYPOINT ["/readlist"]