mirror of
https://github.com/Tzahi12345/YoutubeDL-Material.git
synced 2026-04-10 14:01:28 +03:00
Updated Dockerfile to support ubuntu
This commit is contained in:
24
Dockerfile
24
Dockerfile
@@ -1,11 +1,16 @@
|
|||||||
FROM ubuntu:focal AS ffmpeg
|
FROM ubuntu:focal AS ffmpeg
|
||||||
|
|
||||||
COPY docker-build.sh .
|
RUN apt-get update && apt-get install -y software-properties-common
|
||||||
RUN sh ./docker-build.sh
|
RUN add-apt-repository ppa:savoury1/ffmpeg4
|
||||||
|
RUN add-apt-repository ppa:savoury1/ffmpeg5 && apt-get update && apt-get install -y ffmpeg
|
||||||
|
|
||||||
FROM ubuntu:focal as frontend
|
FROM ubuntu:focal as frontend
|
||||||
|
|
||||||
RUN apt-get update && apt-get install npm
|
ENV DEBIAN_FRONTEND=noninteractive
|
||||||
|
RUN apt-get update
|
||||||
|
RUN apt-get -y install curl gnupg
|
||||||
|
RUN curl -sL https://deb.nodesource.com/setup_12.x | bash -
|
||||||
|
RUN apt-get -y install nodejs
|
||||||
|
|
||||||
RUN npm install -g @angular/cli
|
RUN npm install -g @angular/cli
|
||||||
|
|
||||||
@@ -27,17 +32,20 @@ ENV UID=1000 \
|
|||||||
|
|
||||||
ENV NO_UPDATE_NOTIFIER=true
|
ENV NO_UPDATE_NOTIFIER=true
|
||||||
|
|
||||||
RUN addgroup -S $USER -g $GID && adduser -D -S $USER -G $USER -u $UID
|
RUN groupadd -g $GID $USER
|
||||||
|
RUN useradd --system -g $USER --uid $UID $USER
|
||||||
|
|
||||||
RUN apt-get update && apt-get install \
|
ENV DEBIAN_FRONTEND=noninteractive
|
||||||
|
RUN curl -sL https://deb.nodesource.com/setup_12.x | bash -
|
||||||
|
RUN apt-get update && apt-get -y install \
|
||||||
npm \
|
npm \
|
||||||
python2 \
|
python2 \
|
||||||
python3 \
|
python3 \
|
||||||
atomicparsley
|
atomicparsley
|
||||||
|
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
COPY --from=ffmpeg /usr/local/bin/ffmpeg /usr/local/bin/ffmpeg
|
COPY --from=ffmpeg /usr/bin/ffmpeg /usr/bin/ffmpeg
|
||||||
COPY --from=ffmpeg /usr/local/bin/ffprobe /usr/local/bin/ffprobe
|
COPY --from=ffmpeg /usr/bin/ffprobe /usr/bin/ffprobe
|
||||||
COPY --chown=$UID:$GID [ "backend/package.json", "backend/package-lock.json", "/app/" ]
|
COPY --chown=$UID:$GID [ "backend/package.json", "backend/package-lock.json", "/app/" ]
|
||||||
ENV PM2_HOME=/app/pm2
|
ENV PM2_HOME=/app/pm2
|
||||||
RUN npm install pm2 -g
|
RUN npm install pm2 -g
|
||||||
@@ -47,5 +55,5 @@ COPY --chown=$UID:$GID --from=frontend [ "/build/backend/public/", "/app/public/
|
|||||||
COPY --chown=$UID:$GID [ "/backend/", "/app/" ]
|
COPY --chown=$UID:$GID [ "/backend/", "/app/" ]
|
||||||
|
|
||||||
EXPOSE 17442
|
EXPOSE 17442
|
||||||
ENTRYPOINT [ "/app/entrypoint.sh" ]
|
# ENTRYPOINT [ "/app/entrypoint.sh" ]
|
||||||
CMD [ "pm2-runtime", "pm2.config.js" ]
|
CMD [ "pm2-runtime", "pm2.config.js" ]
|
||||||
|
|||||||
Reference in New Issue
Block a user