From 1536573dd57a6634b128b08a76e9ba77a1dae418 Mon Sep 17 00:00:00 2001 From: SrGooglo Date: Tue, 4 Apr 2023 12:19:53 +0000 Subject: [PATCH] use yarn --- packages/server/Dockerfile | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/packages/server/Dockerfile b/packages/server/Dockerfile index e38b7bf5..6605429e 100755 --- a/packages/server/Dockerfile +++ b/packages/server/Dockerfile @@ -1,7 +1,10 @@ FROM node:16-bullseye +RUN curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | apt-key add - echo "deb https://dl.yarnpkg.com/debian/ stable main" | tee /etc/apt/sources.list.d/yarn.list + RUN apt update -RUN apt install python -y +RUN apt install --no-install-recommends curl python yarn -y + RUN mkdir -p /home/node/app/node_modules && chown -R node:node /home/node/app WORKDIR /home/node/app @@ -13,8 +16,8 @@ COPY package.json ./ COPY --chown=node:node . . RUN chmod -R 777 /home/node/app -RUN npm install -RUN npm run build +RUN yarn install +RUN yarn build RUN npm rebuild @tensorflow/tfjs-node --build-from-source CMD ["node", "/home/node/app/dist/index.js"] \ No newline at end of file