mirror of
https://github.com/marcopiovanello/yt-dlp-web-ui.git
synced 2026-07-25 06:54:30 +00:00
143cc28a97
* refactoring-1 introduced pipelines and abstracted download process.go in Downloader interface * migrated to boltdb from sqlite + session files * refactoring: config struct & pipelines * added js runtime for yt-dlp * updated dockerfile * added external js runtime, metadata scraping refactor * updated Dockerfile * fixed env propagation in docker * updated package name to v4 * updated readme and cd
45 lines
980 B
Docker
45 lines
980 B
Docker
FROM node:24-slim AS ui
|
|
ENV PNPM_HOME="/pnpm"
|
|
ENV PATH="$PNPM_HOME:$PATH"
|
|
RUN corepack prepare pnpm@11.4.0 --activate && corepack enable
|
|
COPY . /usr/src/yt-dlp-webui
|
|
|
|
WORKDIR /usr/src/yt-dlp-webui/frontend
|
|
|
|
RUN rm -rf node_modules
|
|
|
|
RUN pnpm install
|
|
RUN pnpm build
|
|
|
|
|
|
|
|
FROM golang AS build
|
|
|
|
WORKDIR /usr/src/yt-dlp-webui
|
|
|
|
COPY . .
|
|
COPY --from=ui /usr/src/yt-dlp-webui/frontend /usr/src/yt-dlp-webui/frontend
|
|
|
|
RUN CGO_ENABLED=0 GOOS=linux go build -o yt-dlp-webui
|
|
|
|
|
|
|
|
FROM python:alpine
|
|
|
|
RUN apk update && \
|
|
apk add ffmpeg ca-certificates curl wget gnutls deno --no-cache && \
|
|
pip install "yt-dlp[default,curl-cffi,mutagen,pycryptodomex,phantomjs,secretstorage]"
|
|
|
|
VOLUME /downloads /config
|
|
|
|
WORKDIR /app
|
|
|
|
COPY --from=build /usr/src/yt-dlp-webui/yt-dlp-webui /app
|
|
|
|
ENV APP_PATHS_DOWNLOAD_PATH="/downloads"
|
|
ENV APP_PATHS_LOCAL_DATABASE_PATH="/config"
|
|
ENV APP_PATHS_JS_RUNTIME_PATH="deno:/usr/bin/deno"
|
|
|
|
EXPOSE 3033
|
|
ENTRYPOINT [ "./yt-dlp-webui", "--conf", "/config/config.yml"]
|