Compare commits
1 Commits
master
...
1d4d716c6b
| Author | SHA1 | Date | |
|---|---|---|---|
| 1d4d716c6b |
14
CHANGELOG.md
14
CHANGELOG.md
@@ -1,16 +1,8 @@
|
|||||||
### Changelog
|
### Changelog
|
||||||
|
|
||||||
#### [v1.1.1](https://git.w33ble.com/w33ble/youtube-dl-web/compare/v1.1.0...v1.1.1) (14 February 2020)
|
#### 1.1.0 (27 November 2019)
|
||||||
- docs: add url usage example [`84eeafa`](https://git.w33ble.com/w33ble/youtube-dl-web/commit/84eeafa2f7706f57b5cd5762d8ea71db5861298d)
|
|
||||||
- docs: fix build and publish instructions [`8623e6b`](https://git.w33ble.com/w33ble/youtube-dl-web/commit/8623e6be8dd72e446d988dcfe964b5657a6f80dd)
|
|
||||||
- fix: expose port 8080 [`2c9ae1a`](https://git.w33ble.com/w33ble/youtube-dl-web/commit/2c9ae1ad3ede0044978bf9c355df4dafa55343a2)
|
|
||||||
|
|
||||||
#### [v1.1.0](https://git.w33ble.com/w33ble/youtube-dl-web/compare/v1.0.1...v1.1.0) (27 November 2019)
|
|
||||||
- 1.1.0 [`0933b59`](https://git.w33ble.com/w33ble/youtube-dl-web/commit/0933b591fef65584f57d87d3f12f2be6301ce2e5)
|
|
||||||
- feat: allow cleanup via REMOVE_DOWNLOAD env [`3792de3`](https://git.w33ble.com/w33ble/youtube-dl-web/commit/3792de3c91f307403eee6acec5a914cdf5ab9809)
|
|
||||||
- docs: add note about REMOVE_DOWNLOAD to readme [`16d971d`](https://git.w33ble.com/w33ble/youtube-dl-web/commit/16d971d8bbc9f82d83d3aee40119b179123303e2)
|
|
||||||
|
|
||||||
#### v1.0.1 (27 November 2019)
|
|
||||||
- initial commit [`b66eb8a`](https://git.w33ble.com/w33ble/youtube-dl-web/commit/b66eb8abe793f7d551f1c44612a0b7e32d9b05b4)
|
- initial commit [`b66eb8a`](https://git.w33ble.com/w33ble/youtube-dl-web/commit/b66eb8abe793f7d551f1c44612a0b7e32d9b05b4)
|
||||||
- feat: functional download server [`eb35ae5`](https://git.w33ble.com/w33ble/youtube-dl-web/commit/eb35ae5dfdb76c6f144920e0c49b0313c9dbfb22)
|
- feat: functional download server [`eb35ae5`](https://git.w33ble.com/w33ble/youtube-dl-web/commit/eb35ae5dfdb76c6f144920e0c49b0313c9dbfb22)
|
||||||
- doc: update readme [`a955d20`](https://git.w33ble.com/w33ble/youtube-dl-web/commit/a955d20a52201d7d6ed56d8db077adf654e18636)
|
- doc: update readme [`a955d20`](https://git.w33ble.com/w33ble/youtube-dl-web/commit/a955d20a52201d7d6ed56d8db077adf654e18636)
|
||||||
|
- feat: allow cleanup via REMOVE_DOWNLOAD env [`3792de3`](https://git.w33ble.com/w33ble/youtube-dl-web/commit/3792de3c91f307403eee6acec5a914cdf5ab9809)
|
||||||
|
- docs: add note about REMOVE_DOWNLOAD to readme [`16d971d`](https://git.w33ble.com/w33ble/youtube-dl-web/commit/16d971d8bbc9f82d83d3aee40119b179123303e2)
|
||||||
|
|||||||
31
Dockerfile
31
Dockerfile
@@ -1,17 +1,37 @@
|
|||||||
|
# create build from source
|
||||||
|
FROM python:3 AS build
|
||||||
|
|
||||||
|
WORKDIR /build
|
||||||
|
|
||||||
|
RUN set -xe \
|
||||||
|
&& apt-get update -y \
|
||||||
|
&& apt-get install -y zip pandoc \
|
||||||
|
&& curl -L https://github.com/ytdl-org/youtube-dl/archive/master.zip -o youtube-dl-master.zip \
|
||||||
|
&& unzip youtube-dl-master.zip
|
||||||
|
|
||||||
|
WORKDIR /build/youtube-dl-master
|
||||||
|
|
||||||
|
RUN set -xe \
|
||||||
|
&& make
|
||||||
|
|
||||||
|
# add the build to the web container
|
||||||
FROM node:12-alpine
|
FROM node:12-alpine
|
||||||
|
|
||||||
# install youtube-dl
|
WORKDIR /app
|
||||||
|
|
||||||
|
# copy the build
|
||||||
|
COPY --from=build /build/youtube-dl-master/youtube-dl /usr/local/bin
|
||||||
|
|
||||||
|
# install dependencies
|
||||||
RUN set -xe \
|
RUN set -xe \
|
||||||
|
&& chmod a+rx /usr/local/bin/youtube-dl \
|
||||||
&& apk add --no-cache ca-certificates \
|
&& apk add --no-cache ca-certificates \
|
||||||
ffmpeg \
|
ffmpeg \
|
||||||
openssl \
|
openssl \
|
||||||
python3 \
|
python3 \
|
||||||
&& pip3 install --upgrade pip \
|
&& ln -s /usr/bin/python3 /usr/bin/python
|
||||||
&& pip3 install youtube-dl
|
|
||||||
|
|
||||||
# install app dependencies
|
# install app dependencies
|
||||||
WORKDIR /app
|
|
||||||
|
|
||||||
RUN npm install -g yarn
|
RUN npm install -g yarn
|
||||||
COPY package.json yarn.lock ./
|
COPY package.json yarn.lock ./
|
||||||
RUN yarn install
|
RUN yarn install
|
||||||
@@ -20,5 +40,4 @@ ENV NODE_ENV=development
|
|||||||
|
|
||||||
COPY . .
|
COPY . .
|
||||||
VOLUME /app/data
|
VOLUME /app/data
|
||||||
EXPOSE 8080
|
|
||||||
ENTRYPOINT ["yarn", "start"]
|
ENTRYPOINT ["yarn", "start"]
|
||||||
|
|||||||
@@ -41,7 +41,7 @@ Running it like this, the result from youtube-dl will only be useful from the we
|
|||||||
|
|
||||||
```sh
|
```sh
|
||||||
docker build . -t youtube-dl-web
|
docker build . -t youtube-dl-web
|
||||||
docker tag youtube-dl-web w33ble/youtube-dl-web:latest
|
docker tag youtube-dl w33ble/youtube-dl-web:latest
|
||||||
docker push w33ble/youtube-dl-web:latest
|
docker push w33ble/youtube-dl-web:latest
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "youtube-dl-web",
|
"name": "youtube-dl-web",
|
||||||
"version": "1.1.1",
|
"version": "1.1.0",
|
||||||
"description": "youtube-dl wrapped in a simple web server",
|
"description": "youtube-dl wrapped in a simple web server",
|
||||||
"main": "index.js",
|
"main": "index.js",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
|
|||||||
Reference in New Issue
Block a user