-
-
Notifications
You must be signed in to change notification settings - Fork 242
Expand file tree
/
Copy pathDockerfile
More file actions
44 lines (26 loc) · 980 Bytes
/
Copy pathDockerfile
File metadata and controls
44 lines (26 loc) · 980 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
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"]