mirror of
https://github.com/Tzahi12345/YoutubeDL-Material.git
synced 2026-03-11 15:20:56 +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
|
||||
|
||||
COPY docker-build.sh .
|
||||
RUN sh ./docker-build.sh
|
||||
RUN apt-get update && apt-get install -y software-properties-common
|
||||
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
|
||||
|
||||
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
|
||||
|
||||
@@ -27,17 +32,20 @@ ENV UID=1000 \
|
||||
|
||||
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 \
|
||||
python2 \
|
||||
python3 \
|
||||
atomicparsley
|
||||
|
||||
WORKDIR /app
|
||||
COPY --from=ffmpeg /usr/local/bin/ffmpeg /usr/local/bin/ffmpeg
|
||||
COPY --from=ffmpeg /usr/local/bin/ffprobe /usr/local/bin/ffprobe
|
||||
COPY --from=ffmpeg /usr/bin/ffmpeg /usr/bin/ffmpeg
|
||||
COPY --from=ffmpeg /usr/bin/ffprobe /usr/bin/ffprobe
|
||||
COPY --chown=$UID:$GID [ "backend/package.json", "backend/package-lock.json", "/app/" ]
|
||||
ENV PM2_HOME=/app/pm2
|
||||
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/" ]
|
||||
|
||||
EXPOSE 17442
|
||||
ENTRYPOINT [ "/app/entrypoint.sh" ]
|
||||
# ENTRYPOINT [ "/app/entrypoint.sh" ]
|
||||
CMD [ "pm2-runtime", "pm2.config.js" ]
|
||||
|
||||
Reference in New Issue
Block a user