3 Commits

Author SHA1 Message Date
9ec9db7b7b docs: fix image build instructions 2020-02-13 20:46:19 -07:00
0762cfbb6f 1.1.1 2020-02-13 20:37:15 -07:00
2c9ae1ad3e fix: expose port 8080 2020-02-13 20:35:52 -07:00
4 changed files with 19 additions and 30 deletions

View File

@@ -1,8 +1,16 @@
### Changelog
#### 1.1.0 (27 November 2019)
#### [v1.1.1](https://git.w33ble.com/w33ble/youtube-dl-web/compare/v1.1.0...v1.1.1) (14 February 2020)
- 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)
- 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)
- 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)

View File

@@ -1,37 +1,17 @@
# 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
WORKDIR /app
# copy the build
COPY --from=build /build/youtube-dl-master/youtube-dl /usr/local/bin
# install dependencies
# install youtube-dl
RUN set -xe \
&& chmod a+rx /usr/local/bin/youtube-dl \
&& apk add --no-cache ca-certificates \
ffmpeg \
openssl \
python3 \
&& ln -s /usr/bin/python3 /usr/bin/python
&& pip3 install --upgrade pip \
&& pip3 install youtube-dl
# install app dependencies
WORKDIR /app
RUN npm install -g yarn
COPY package.json yarn.lock ./
RUN yarn install
@@ -40,4 +20,5 @@ ENV NODE_ENV=development
COPY . .
VOLUME /app/data
EXPOSE 8080
ENTRYPOINT ["yarn", "start"]

View File

@@ -41,7 +41,7 @@ Running it like this, the result from youtube-dl will only be useful from the we
```sh
docker build . -t youtube-dl-web
docker tag youtube-dl w33ble/youtube-dl-web:latest
docker tag youtube-dl-web w33ble/youtube-dl-web:latest
docker push w33ble/youtube-dl-web:latest
```

View File

@@ -1,6 +1,6 @@
{
"name": "youtube-dl-web",
"version": "1.1.0",
"version": "1.1.1",
"description": "youtube-dl wrapped in a simple web server",
"main": "index.js",
"scripts": {