mirror of
https://github.com/Tzahi12345/YoutubeDL-Material.git
synced 2026-04-25 07:43:20 +03:00
Dockerfile cleanup
This commit is contained in:
17
Dockerfile
17
Dockerfile
@@ -8,18 +8,10 @@ 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 --no-install-recommends -y install \
|
RUN apt-get update && apt-get -y install curl
|
||||||
wget \
|
RUN curl -sL https://deb.nodesource.com/setup_12.x | bash -
|
||||||
curl \
|
RUN apt-get -y install nodejs
|
||||||
gnupg && \
|
RUN npm install -g @angular/cli
|
||||||
curl -sL https://deb.nodesource.com/setup_12.x | bash - && \
|
|
||||||
apt-get -y install \
|
|
||||||
nodejs \
|
|
||||||
# YARN: brings along npm, solves dependency conflicts,
|
|
||||||
# spares us this spaghetti approach: https://stackoverflow.com/a/60547197
|
|
||||||
yarn && \
|
|
||||||
apt-get install -f && \
|
|
||||||
npm install -g @angular/cli
|
|
||||||
|
|
||||||
WORKDIR /build
|
WORKDIR /build
|
||||||
COPY [ "package.json", "package-lock.json", "/build/" ]
|
COPY [ "package.json", "package-lock.json", "/build/" ]
|
||||||
@@ -48,7 +40,6 @@ RUN apt-get update && apt-get --no-install-recommends -y install \
|
|||||||
python2 \
|
python2 \
|
||||||
python3 \
|
python3 \
|
||||||
atomicparsley && \
|
atomicparsley && \
|
||||||
apt-get install -f && \
|
|
||||||
apt autoremove --purge && \
|
apt autoremove --purge && \
|
||||||
apt autoremove && \
|
apt autoremove && \
|
||||||
apt clean && \
|
apt clean && \
|
||||||
|
|||||||
Reference in New Issue
Block a user