FROM golang:1.20-alpine3.17 as builder WORKDIR /usr/src/ytdl-web ADD . . RUN go mod download RUN go build -o ytdl-web . FROM alpine:3.17 WORKDIR /app RUN apk add --no-cache yt-dlp ffmpeg COPY --from=builder /usr/src/ytdl-web/ytdl-web ./ytdl-web EXPOSE 8080 ENTRYPOINT [ "ytdl-web" ]