mirror of
https://ghproxy.com/https://github.com/truecharts/charts.git
synced 2026-07-26 20:20:32 +08:00
Test moving some youtubedl code (#379)
* copy and run * Copy /app to /data and run from there * add a data mountpoint * try again.
This commit is contained in:
committed by
GitHub
parent
89d97a63d2
commit
ca22adbcd9
@@ -66,6 +66,8 @@ RUN \
|
||||
/tmp/* \
|
||||
/var/lib/apt/lists/* \
|
||||
/var/tmp/ \
|
||||
&& mkdir /data \
|
||||
&& chmod -R 777 /data \
|
||||
&& chmod -R u=rwX,go=rX /app \
|
||||
&& printf "umask %d" "${UMASK}" >> /etc/bash.bashrc \
|
||||
&& update-ca-certificates
|
||||
@@ -73,9 +75,8 @@ RUN \
|
||||
COPY --from=builder --chown=apps:apps /app /app
|
||||
|
||||
WORKDIR /app
|
||||
VOLUME /app
|
||||
USER apps
|
||||
|
||||
VOLUME /data
|
||||
|
||||
EXPOSE 17442
|
||||
COPY ./.containers/apps/youtubedl/entrypoint.sh /entrypoint.sh
|
||||
|
||||
@@ -1,3 +1,7 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
exec node /app/app.js ${@} ${EXTRA_ARGS}
|
||||
echo "Patching youtubedl-material"
|
||||
cd /data
|
||||
find . -maxdepth 1 ! -name users ! -name appdata -exec rm -Rf {} +
|
||||
cp -Rn /app/* /data
|
||||
exec node /data/app.js ${@} ${EXTRA_ARGS}
|
||||
|
||||
Reference in New Issue
Block a user