From a939bb9a24d27801934d7feaf98a3c21065645c6 Mon Sep 17 00:00:00 2001 From: SeoulSKY Date: Tue, 12 Mar 2024 23:44:45 -0600 Subject: [PATCH] Update Dockerfile --- sorusora-ai/Dockerfile | 21 +++++---------------- 1 file changed, 5 insertions(+), 16 deletions(-) diff --git a/sorusora-ai/Dockerfile b/sorusora-ai/Dockerfile index 1d7b14c..3e567ce 100644 --- a/sorusora-ai/Dockerfile +++ b/sorusora-ai/Dockerfile @@ -1,24 +1,13 @@ -FROM ghcr.io/puppeteer/puppeteer:22.4.1 - -USER root - -SHELL ["/bin/bash", "-c"] - -ENV NODE_VERSION=21.6 +FROM node:21.6 ENV ROOT_PATH sorusora-ai ENV PROTO_PATH protos -RUN wget -qO- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.7/install.sh | bash \ - && export NVM_DIR="$HOME/.nvm" \ - && [ -s "$NVM_DIR/nvm.sh" ] \ - && \. "$NVM_DIR/nvm.sh" \ - && [ -s "$NVM_DIR/bash_completion" ] \ - && \. "$NVM_DIR/bash_completion" \ - && nvm install $NODE_VERSION \ - && source $HOME/.bashrc \ - && nvm use $NODE_VERSION +RUN apt-get update \ + && apt-get install chromium -y + +ENV CHROME_PATH /usr/bin/chromium WORKDIR /app