diff --git a/docker/omni.Dockerfile b/docker/omni.Dockerfile index baf388d58..b86720d13 100644 --- a/docker/omni.Dockerfile +++ b/docker/omni.Dockerfile @@ -102,13 +102,16 @@ RUN apt-get update \ && apt-get autoremove \ && rm -rf /var/lib/apt/lists/* -RUN apt-get install -y curl \ - && curl -sL https://deb.nodesource.com/setup_16.x | bash - \ - && apt-get install -y nodejs \ - && curl -L https://www.npmjs.com/install.sh | sh +RUN curl -sL https://deb.nodesource.com/setup_16.x | bash - \ + && apt-get install -y nodejs # Add Yarn -RUN npm install -g yarn +RUN curl -sL https://dl.yarnpkg.com/debian/pubkey.gpg | gpg --dearmor | tee /usr/share/keyrings/yarnkey.gpg >/dev/null \ + && echo "deb [signed-by=/usr/share/keyrings/yarnkey.gpg] https://dl.yarnpkg.com/debian stable main" | tee /etc/apt/sources.list.d/yarn.list \ + && apt-get update && apt-get install yarn + +# Clean apt +RUN apt-get autoremove && rm -rf /var/lib/apt/lists/* # copying poetry and venv into image COPY --from=builder-base $POETRY_HOME $POETRY_HOME