Compare commits
12 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
1f6d6d7839 | ||
|
|
e59cf383d5 | ||
|
|
643c752b6a | ||
|
|
5e51bf7ff5 | ||
|
|
245b70f654 | ||
|
|
2d1fc0dda5 | ||
| ee83bad6e8 | |||
|
|
3609f573a2 | ||
| e258dea2ca | |||
|
|
f2622adc7e | ||
|
|
4f4348cb91 | ||
|
|
fabe1c7d5e |
5
.github/workflows/docker-image.yml
vendored
5
.github/workflows/docker-image.yml
vendored
@@ -22,6 +22,5 @@ jobs:
|
||||
with:
|
||||
version: latest
|
||||
- name: Build the Docker image
|
||||
run: docker buildx build . --file Dockerfile --tag ${{secrets.DOCKER_HUB_USERNAME}}/yt-dlp-webui:latest --platform linux/amd64,linux/arm/v7,linux/arm64
|
||||
- name: Publish the Docker image
|
||||
run: docker push ${{secrets.DOCKER_HUB_USERNAME}}/yt-dlp-webui:latest
|
||||
run: docker buildx build . --file Dockerfile --tag ${{secrets.DOCKER_HUB_USERNAME}}/yt-dlp-webui:latest --push --platform linux/amd64,linux/arm/v7,linux/arm64
|
||||
|
||||
|
||||
11
.github/workflows/docker-publish.yml
vendored
11
.github/workflows/docker-publish.yml
vendored
@@ -1,4 +1,4 @@
|
||||
name: Docker
|
||||
name: Docker (ghcr.io)
|
||||
|
||||
# This workflow uses actions that are not certified by GitHub.
|
||||
# They are provided by a third-party and are governed by
|
||||
@@ -6,14 +6,13 @@ name: Docker
|
||||
# documentation.
|
||||
|
||||
on:
|
||||
# schedule:
|
||||
# - cron: '39 13 * * *'
|
||||
release:
|
||||
branches: [ master ]
|
||||
# Publish semver tags as releases.
|
||||
tags: [ 'v*.*.*' ]
|
||||
# pull_request:
|
||||
# branches: [ master ]
|
||||
push:
|
||||
branches: [ master ]
|
||||
pull_request:
|
||||
branches: [ master ]
|
||||
|
||||
env:
|
||||
# Use docker.io for Docker Hub if empty
|
||||
|
||||
18
Dockerfile
18
Dockerfile
@@ -6,13 +6,13 @@ FROM alpine:3.17 AS build
|
||||
WORKDIR /usr/src/yt-dlp-webui
|
||||
# install core dependencies
|
||||
RUN apk update && \
|
||||
apk add curl wget psmisc ffmpeg nodejs yarn go yt-dlp
|
||||
apk add nodejs npm go
|
||||
# copia la salsa
|
||||
COPY . .
|
||||
# build frontend
|
||||
WORKDIR /usr/src/yt-dlp-webui/frontend
|
||||
RUN yarn install && \
|
||||
yarn build
|
||||
RUN npm install
|
||||
RUN npm run build
|
||||
# build backend + incubator
|
||||
WORKDIR /usr/src/yt-dlp-webui
|
||||
RUN go build -o yt-dlp-webui
|
||||
@@ -20,10 +20,16 @@ RUN go build -o yt-dlp-webui
|
||||
|
||||
FROM alpine:3.17
|
||||
|
||||
WORKDIR /usr/src/yt-dlp-webui/downloads
|
||||
WORKDIR /downloads
|
||||
VOLUME /downloads
|
||||
|
||||
COPY --from=build /usr/src/yt-dlp-webui /usr/bin/yt-dlp-webui
|
||||
WORKDIR /app
|
||||
|
||||
RUN apk update && \
|
||||
apk add psmisc ffmpeg yt-dlp
|
||||
|
||||
COPY --from=build /usr/src/yt-dlp-webui /app
|
||||
RUN chmod +x /app/yt-dlp-webui
|
||||
|
||||
EXPOSE 3033
|
||||
CMD [ "/usr/bin/yt-dlp-webui" , "--out", "/downloads" ]
|
||||
CMD [ "./yt-dlp-webui" , "--out", "/downloads" ]
|
||||
|
||||
@@ -9,8 +9,11 @@ Developed to be as lightweight as possible (because my server is basically an in
|
||||
|
||||
The bottleneck remains yt-dlp startup time.
|
||||
|
||||
**I strongly recomend the ghcr build instead of docker hub one.**
|
||||
**Docker images are available on [Docker Hub](https://hub.docker.com/r/marcobaobao/yt-dlp-webui) or [ghcr.io](https://github.com/marcopeocchi/yt-dlp-web-ui/pkgs/container/yt-dlp-web-ui)**.
|
||||
|
||||
```sh
|
||||
docker pull marcobaobao/yt-dlp-webui:latest
|
||||
```
|
||||
```sh
|
||||
docker pull ghcr.io/marcopeocchi/yt-dlp-web-ui:latest
|
||||
```
|
||||
@@ -86,6 +89,8 @@ Future releases will have:
|
||||
```sh
|
||||
# recomended for ARM and x86 devices
|
||||
docker pull ghcr.io/marcopeocchi/yt-dlp-web-ui:latest
|
||||
# or
|
||||
# docker pull marcobaobao/yt-dlp-webui:latest
|
||||
docker run -d -p 3033:3033 -v <your dir>:/downloads ghcr.io/marcopeocchi/yt-dlp-web-ui:latest
|
||||
|
||||
# or even
|
||||
|
||||
Reference in New Issue
Block a user