Dockerfile cleanup

This commit is contained in:
Isaac Abadi
2022-05-01 14:02:39 -04:00
parent 67b2e480f8
commit b153799531

View File

@@ -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 && \