20 lines
412 B
Docker

FROM mcr.microsoft.com/playwright:v1.50.1-noble
RUN apt-get update &&\
apt-get install -y golang-1.23-go yt-dlp ffmpeg &&\
apt-get clean &&\
rm -rf /var/lib/apt/lists/*
ENV PATH="/usr/lib/go-1.23/bin/:$PATH"
WORKDIR /app
COPY go.mod go.sum ./
RUN go mod download
COPY migrations ./migrations
COPY *.go ./
RUN go build -o /vivaplusdl
RUN /vivaplusdl --install
CMD ["/vivaplusdl", "--no-install"]