Added yarn back to Dockerfile

Set strict-ssl to false for npm in Dockerfile
This commit is contained in:
Isaac Abadi
2022-05-01 15:12:46 -04:00
parent 945e784950
commit fe187ed55b

View File

@@ -10,7 +10,9 @@ FROM ubuntu:20.04 as frontend
ENV DEBIAN_FRONTEND=noninteractive ENV DEBIAN_FRONTEND=noninteractive
RUN apt-get update && apt-get -y install curl RUN apt-get update && apt-get -y install curl
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 -y install nodejs RUN apt-get -y install nodejs \
yarn
RUN npm config set strict-ssl false
RUN npm install -g @angular/cli RUN npm install -g @angular/cli
WORKDIR /build WORKDIR /build
@@ -36,7 +38,8 @@ 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 -y install \
npm \ nodejs \
yarn \
python2 \ python2 \
python3 \ python3 \
atomicparsley && \ atomicparsley && \
@@ -45,6 +48,8 @@ RUN apt-get update && apt-get -y install \
apt-get clean && \ apt-get clean && \
rm -rf /var/lib/apt rm -rf /var/lib/apt
RUN npm config set strict-ssl false
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
COPY --from=ffmpeg /usr/local/bin/ffprobe /usr/local/bin/ffprobe COPY --from=ffmpeg /usr/local/bin/ffprobe /usr/local/bin/ffprobe