This is a Dockerfile for Kethsar/ytarchive. https://github.com/jim60105/docker-ytarchive
9.4K
This repository contains Dockerfiles for Kethsar/ytarchive: A tool for archiving YouTube livestreams from the start from the community.
Get the Dockerfile on GitHub, or pull the image from ghcr.io or Quay.io.
These Dockerfiles are created to construct images using three different base images: Alpine, Red Hat UBI (Universal Base Image), and Google Distroless.
All of them operate effectively without notable risks, so choose the one that suits your preference.
We used Alpine image as the default.
Note
We run an auto update CI weekly to make the `latest` image up to date with the Kethsar/ytarchive master branch.
docker run -it -v ".:/download" ghcr.io/jim60105/ytarchive:latest [OPTIONS] [url] [quality]
docker run -it -v ".:/download" ghcr.io/jim60105/ytarchive:v0.4.0 [OPTIONS] [url] [quality]
docker run -it -v ".:/download" ghcr.io/jim60105/ytarchive:v0.3.2-ubi [OPTIONS] [url] [quality]
The Dockerfile accepts one build argument: VERSION. This argument is used to specify the version of ytarchive that will be installed in the Docker image. You can use the tags from the ytarchive repository to indicate the version, or you can use the branch name to build a specific branch. Check out the ytarchive releases for the available tags and the ytarchive branches for building a particular branch.
This repository contains three Dockerfiles for building Docker images based on different base images:
| Dockerfile | Base Image |
|---|---|
| Dockerfile | Alpine 3.18 |
| Dockerfile.ubi | Red Hat UBI9 micro |
| Dockerfile.distroless | Google Distroless static-debian12 |
Please build them like this:
docker build -f Dockerfile --build-arg VERSION=v0.4.0 -t ytarchive:v0.4.0 .
docker build -f Dockerfile.ubi --build-arg VERSION=master -t ytarchive:ubi .
docker build -f Dockerfile.distroless --build-arg VERSION=v0.3.2 -t ytarchive:v0.3.2-distroless .
Note
If you are using an earlier version of the docker client, it is necessary to [enable the BuildKit mode](https://docs.docker.com/build/buildkit/#getting-started) when building the image. This is because I used the `COPY --link` feature which enhances the build performance and was introduced in Buildx v0.8. With the Docker Engine 23.0 and Docker Desktop 4.19, Buildx has become the default build client. So you won't have to worry about this when using the latest version.
docker run -it -v ".:/download" ghcr.io/jim60105/ytarchive [OPTIONS] [url] [quality]
Mount the current directory as /download and run ytarchive with additional input arguments.
The downloaded files will be saved to where you run the command.
The [OPTIONS], [url], and [quality] placeholders should be replaced with the options and arguments for ytarchive. Check the ytarchive README for more information.
The main program, ytarchive, is distributed under MIT.
Please consult their repository for access to the source code and licenses.
The following is the license for the Dockerfiles and CI workflows in this repository.
GNU GENERAL PUBLIC LICENSE Version 3
This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with this program. If not, see https://www.gnu.org/licenses/.
Content type
Image
Digest
sha256:c2b6f76e8…
Size
40.5 MB
Last updated
9 months ago
docker pull jim60105/ytarchive