|
|
|
@ -1,12 +1,14 @@
|
|
|
|
FROM ubuntu:20.04 AS ffmpeg
|
|
|
|
FROM ubuntu:20.04 AS ffmpeg
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
ENV DEBIAN_FRONTEND=noninteractive
|
|
|
|
|
|
|
|
|
|
|
|
COPY docker-build.sh .
|
|
|
|
COPY docker-build.sh .
|
|
|
|
RUN sh ./docker-build.sh
|
|
|
|
RUN sh ./docker-build.sh
|
|
|
|
|
|
|
|
|
|
|
|
FROM ubuntu:20.04 as frontend
|
|
|
|
FROM ubuntu:20.04 as frontend
|
|
|
|
|
|
|
|
|
|
|
|
ENV DEBIAN_FRONTEND=noninteractive
|
|
|
|
ENV DEBIAN_FRONTEND=noninteractive
|
|
|
|
RUN apt-get update && apt-get -y install \
|
|
|
|
RUN apt-get update && apt-get --no-install-recommends -y install \
|
|
|
|
wget \
|
|
|
|
wget \
|
|
|
|
curl \
|
|
|
|
curl \
|
|
|
|
gnupg && \
|
|
|
|
gnupg && \
|
|
|
|
@ -36,15 +38,21 @@ ENV UID=1000 \
|
|
|
|
USER=youtube \
|
|
|
|
USER=youtube \
|
|
|
|
NO_UPDATE_NOTIFIER=true
|
|
|
|
NO_UPDATE_NOTIFIER=true
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
ENV DEBIAN_FRONTEND=noninteractive
|
|
|
|
|
|
|
|
|
|
|
|
RUN groupadd -g $GID $USER && useradd --system -g $USER --uid $UID $USER
|
|
|
|
RUN groupadd -g $GID $USER && useradd --system -g $USER --uid $UID $USER
|
|
|
|
|
|
|
|
|
|
|
|
RUN curl -sL https://deb.nodesource.com/setup_12.x | bash -
|
|
|
|
RUN curl -sL https://deb.nodesource.com/setup_12.x | bash -
|
|
|
|
RUN apt-get update && apt-get -y install \
|
|
|
|
RUN apt-get update && apt-get --no-install-recommends -y install \
|
|
|
|
npm \
|
|
|
|
npm \
|
|
|
|
python2 \
|
|
|
|
python2 \
|
|
|
|
python3 \
|
|
|
|
python3 \
|
|
|
|
atomicparsley && \
|
|
|
|
atomicparsley && \
|
|
|
|
apt-get install -f
|
|
|
|
apt-get install -f && \
|
|
|
|
|
|
|
|
apt autoremove --purge && \
|
|
|
|
|
|
|
|
apt autoremove && \
|
|
|
|
|
|
|
|
apt clean && \
|
|
|
|
|
|
|
|
rm -rf /var/lib/apt
|
|
|
|
|
|
|
|
|
|
|
|
WORKDIR /app
|
|
|
|
WORKDIR /app
|
|
|
|
COPY --from=ffmpeg /usr/local/bin/ffmpeg /usr/local/bin/ffmpeg
|
|
|
|
COPY --from=ffmpeg /usr/local/bin/ffmpeg /usr/local/bin/ffmpeg
|
|
|
|
|