own appfolder content by apps:apps user for youtubedl container
(and remove youtubedltest)
This commit is contained in:
@@ -87,7 +87,8 @@ RUN \
|
|||||||
&& chmod -R 777 /data \
|
&& chmod -R 777 /data \
|
||||||
&& chmod -R u=rwX,go=rX /app \
|
&& chmod -R u=rwX,go=rX /app \
|
||||||
&& printf "umask %d" "${UMASK}" >> /etc/bash.bashrc \
|
&& printf "umask %d" "${UMASK}" >> /etc/bash.bashrc \
|
||||||
&& update-ca-certificates
|
&& update-ca-certificates \
|
||||||
|
&& chown -R apps:apps /app
|
||||||
|
|
||||||
COPY --chown=apps:apps --from=builder [ "/extract/build/backend/public/", "/app/public/" ]
|
COPY --chown=apps:apps --from=builder [ "/extract/build/backend/public/", "/app/public/" ]
|
||||||
COPY --chown=apps:apps --from=builder [ "/extract/backend/", "/app/" ]
|
COPY --chown=apps:apps --from=builder [ "/extract/backend/", "/app/" ]
|
||||||
|
|||||||
@@ -1 +0,0 @@
|
|||||||
focal-20210401
|
|
||||||
@@ -1,106 +0,0 @@
|
|||||||
# hadolint ignore=DL3007
|
|
||||||
FROM ghcr.io/truecharts/ubuntu:latest AS builder
|
|
||||||
|
|
||||||
|
|
||||||
WORKDIR /extract/build
|
|
||||||
|
|
||||||
# hadolint ignore=DL3002
|
|
||||||
USER root
|
|
||||||
ARG VERSION
|
|
||||||
ENV VERSION=4.2
|
|
||||||
|
|
||||||
SHELL ["/bin/bash", "-o", "pipefail", "-c"]
|
|
||||||
|
|
||||||
# hadolint ignore=DL3008,DL3015,SC2086,SC2155,DL3003,DL3016
|
|
||||||
RUN \
|
|
||||||
apt-get -qq update \
|
|
||||||
&& \
|
|
||||||
apt-get -qq install -y \
|
|
||||||
npm \
|
|
||||||
build-essential
|
|
||||||
|
|
||||||
# hadolint ignore=DL3016
|
|
||||||
RUN npm install -g @angular/cli
|
|
||||||
|
|
||||||
RUN \
|
|
||||||
export URL="https://github.com/Tzahi12345/YoutubeDL-Material/archive/refs/tags/v${VERSION}.tar.gz" \
|
|
||||||
&& curl -fsSL -o /tmp/youtubedl.tgz "${URL}" \
|
|
||||||
&& tar ixzf /tmp/youtubedl.tgz -C /extract --strip-components=1 \
|
|
||||||
&& cp /extract/package.json /extract/package-lock.json /extract/build
|
|
||||||
|
|
||||||
# hadolint ignore=DL3016
|
|
||||||
RUN \
|
|
||||||
echo "==running NPM install==" \
|
|
||||||
&& npm install \
|
|
||||||
&& cp /extract/angular.json /extract/tsconfig.json /extract/build \
|
|
||||||
&& cp -Rf /extract/src /extract/build \
|
|
||||||
&& ng build --prod
|
|
||||||
|
|
||||||
|
|
||||||
# hadolint ignore=DL3007
|
|
||||||
FROM ghcr.io/truecharts/ubuntu:latest
|
|
||||||
|
|
||||||
ENV NO_UPDATE_NOTIFIER=true
|
|
||||||
ENV NODE_ENV=production
|
|
||||||
ENV APP_DIR="/app"
|
|
||||||
|
|
||||||
ARG TARGETPLATFORM
|
|
||||||
ARG BUILDPLATFORM
|
|
||||||
ARG VERSION
|
|
||||||
|
|
||||||
# hadolint ignore=DL3002
|
|
||||||
USER root
|
|
||||||
|
|
||||||
SHELL ["/bin/bash", "-o", "pipefail", "-c"]
|
|
||||||
|
|
||||||
ARG VERSION
|
|
||||||
|
|
||||||
WORKDIR /app
|
|
||||||
COPY --chown=apps:apps --from=builder [ "/extract/backend/package.json", "/extract/backend/package-lock.json", "/app/" ]
|
|
||||||
|
|
||||||
# hadolint ignore=DL3008,DL3015,SC2086,SC2155,DL3003,DL3016
|
|
||||||
RUN \
|
|
||||||
apt-get -qq update \
|
|
||||||
&& \
|
|
||||||
apt-get -qq install -y \
|
|
||||||
nodejs \
|
|
||||||
npm \
|
|
||||||
ffmpeg \
|
|
||||||
python \
|
|
||||||
ffmpeg \
|
|
||||||
atomicparsley \
|
|
||||||
&& echo "==Installing youtubedl-material==" \
|
|
||||||
&& npm install \
|
|
||||||
&& printf "UpdateMethod=docker\nPackageVersion=%s\nPackageAuthor=[TrueCharts Project](https://truecharts.org)" "${VERSION}" > /app/package_info \
|
|
||||||
&& echo "==Running Cleanup ==" \
|
|
||||||
&& apt-get remove -y \
|
|
||||||
npm \
|
|
||||||
&& apt-get purge -y --auto-remove -o APT::AutoRemove::RecommendsImportant=false \
|
|
||||||
&& apt-get autoremove -y \
|
|
||||||
&& apt-get clean \
|
|
||||||
&& \
|
|
||||||
rm -rf \
|
|
||||||
/tmp/* \
|
|
||||||
/var/lib/apt/lists/* \
|
|
||||||
/var/tmp/ \
|
|
||||||
&& mkdir -p /data/appdata \
|
|
||||||
&& chmod -R 777 /data \
|
|
||||||
&& chmod -R 775 /app \
|
|
||||||
&& printf "umask %d" "${UMASK}" >> /etc/bash.bashrc \
|
|
||||||
&& update-ca-certificates \
|
|
||||||
&& chown -R apps:apps /app
|
|
||||||
|
|
||||||
COPY --chown=apps:apps --from=builder [ "/extract/build/backend/public/", "/app/public/" ]
|
|
||||||
COPY --chown=apps:apps --from=builder [ "/extract/backend/", "/app/" ]
|
|
||||||
|
|
||||||
USER apps
|
|
||||||
VOLUME /data/appdata
|
|
||||||
|
|
||||||
EXPOSE 17442
|
|
||||||
COPY ./.containers/apps/youtubedltest/entrypoint.sh /entrypoint.sh
|
|
||||||
CMD [ "/entrypoint.sh" ]
|
|
||||||
|
|
||||||
LABEL "maintainer"="TrueCharts <info@truecharts.org>"
|
|
||||||
LABEL "authors"="TrueCharts <info@truecharts.org>"
|
|
||||||
LABEL "org.opencontainers.image.source"="https://github.com/truecharts/apps/tree/master/.containers/apps/youtubedl"
|
|
||||||
LABEL "org.opencontainers.image.documentation "="https://truecharts.org"
|
|
||||||
@@ -1 +0,0 @@
|
|||||||
4.2
|
|
||||||
@@ -1,4 +0,0 @@
|
|||||||
#!/usr/bin/env bash
|
|
||||||
|
|
||||||
|
|
||||||
exec node /app/app.js ${@} ${EXTRA_ARGS}
|
|
||||||
@@ -1,14 +0,0 @@
|
|||||||
---
|
|
||||||
process:
|
|
||||||
node:
|
|
||||||
running: true
|
|
||||||
|
|
||||||
port:
|
|
||||||
tcp6:17442:
|
|
||||||
listening: true
|
|
||||||
|
|
||||||
# http:
|
|
||||||
# http://localhost:9117/UI/Login:
|
|
||||||
# status: 200
|
|
||||||
# body:
|
|
||||||
# - '<title>Jackett</title>'
|
|
||||||
@@ -1,2 +0,0 @@
|
|||||||
#!/usr/bin/env bash
|
|
||||||
cat "./.containers/base/ubuntu/VERSION"
|
|
||||||
@@ -1,6 +0,0 @@
|
|||||||
#!/usr/bin/env bash
|
|
||||||
|
|
||||||
version=$(curl -sX GET "https://api.github.com/repos/Tzahi12345/YoutubeDL-Material/releases" | jq --raw-output '.[0].tag_name')
|
|
||||||
version="${version#*v}"
|
|
||||||
version="${version#*release-}"
|
|
||||||
printf "%s" "${version}"
|
|
||||||
Reference in New Issue
Block a user