diff --git a/Dockerfile b/Dockerfile index 9521c9a..3b8ec2c 100644 --- a/Dockerfile +++ b/Dockerfile @@ -9,7 +9,6 @@ FROM ubuntu:20.04 as frontend ENV DEBIAN_FRONTEND=noninteractive RUN apt-get update && apt-get -y install \ - wget \ curl \ gnupg && \ curl -sL https://deb.nodesource.com/setup_12.x | bash - && \ @@ -19,6 +18,7 @@ RUN apt-get update && apt-get -y install \ # spares us this spaghetti approach: https://stackoverflow.com/a/60547197 yarn && \ apt-get install -f && \ + npm config set strict-ssl false && \ npm install -g @angular/cli WORKDIR /build @@ -59,7 +59,8 @@ COPY --from=ffmpeg /usr/local/bin/ffmpeg /usr/local/bin/ffmpeg COPY --from=ffmpeg /usr/local/bin/ffprobe /usr/local/bin/ffprobe COPY --chown=$UID:$GID [ "backend/package.json", "backend/package-lock.json", "/app/" ] ENV PM2_HOME=/app/pm2 -RUN npm install pm2 -g && \ +RUN npm config set strict-ssl false && \ + npm install pm2 -g && \ npm install && chown -R $UID:$GID ./ COPY --chown=$UID:$GID --from=frontend [ "/build/backend/public/", "/app/public/" ]