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:
Kjeld Schouten-Lebbing
2021-04-17 23:34:52 +02:00
committed by GitHub
parent 89d97a63d2
commit ca22adbcd9
2 changed files with 8 additions and 3 deletions

View File

@@ -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

View File

@@ -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}