aboutsummaryrefslogtreecommitdiffstats
path: root/core
diff options
context:
space:
mode:
authorJesús <heckyel@hyperbola.info>2022-11-19 03:50:33 +0800
committerJesús <heckyel@hyperbola.info>2022-11-19 03:50:33 +0800
commitf6739d6f91a9ebdc48612f15e32bb9ccc05bc61c (patch)
tree96bec9e485dc90250b7d0954f57280f5545015bd /core
parenta8e57e13650d5738b74e274affb577a7d9749a0f (diff)
downloadyt-local-docker-f6739d6f91a9ebdc48612f15e32bb9ccc05bc61c.tar.lz
yt-local-docker-f6739d6f91a9ebdc48612f15e32bb9ccc05bc61c.tar.xz
yt-local-docker-f6739d6f91a9ebdc48612f15e32bb9ccc05bc61c.zip
update config
Diffstat (limited to 'core')
-rw-r--r--core/Dockerfile4
-rw-r--r--core/entrypoint.sh2
2 files changed, 4 insertions, 2 deletions
diff --git a/core/Dockerfile b/core/Dockerfile
index e214cda..73d902c 100644
--- a/core/Dockerfile
+++ b/core/Dockerfile
@@ -7,7 +7,7 @@ FROM base AS builder
ENV LANG C.UTF-8
ENV LC_ALL C.UTF-8
-RUN apk add --no-cache musl-dev build-base make gcc g++ libffi-dev git patch
+RUN apk update && apk upgrade && apk add --no-cache musl-dev build-base make gcc g++ libffi-dev git patch
ARG APP_DIR="/srv/app"
ARG YT_REPO="https://git.sr.ht/~heckyel/yt-local"
@@ -26,7 +26,7 @@ COPY 0001.patch "$APP_DIR/0001.patch"
RUN patch -Np1 -i "$APP_DIR/0001.patch"
# clean
-RUN rm -f "$APP_DIR/0001.patch"
+RUN rm -f "$APP_DIR/0001.patch" && apk del git patch
# Runtime Environment Image
FROM base
diff --git a/core/entrypoint.sh b/core/entrypoint.sh
index b2956ca..d624a67 100644
--- a/core/entrypoint.sh
+++ b/core/entrypoint.sh
@@ -64,6 +64,8 @@ prefer_uni_sources = ${PREFER_UNI_SOURCES:-True}
use_video_player = ${USE_VIDEO_PLAYER:-0}
+use_video_download = ${USE_VIDEO_DOWNLOAD:-0}
+
proxy_images = ${PROXY_IMAGES:-True}
use_comments_js = ${USE_COMMENTS_JS:-True}