From 1dfad5d12252168d57a7c9fefb1ce16d5a2f5d59 Mon Sep 17 00:00:00 2001 From: Sambo Chea Date: Wed, 15 Sep 2021 08:36:12 +0700 Subject: [PATCH] Task: Fixed and changed to yarn script in Dockerfile --- Dockerfile | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/Dockerfile b/Dockerfile index c29cf25..ca07db0 100644 --- a/Dockerfile +++ b/Dockerfile @@ -13,10 +13,10 @@ RUN apk update && \ WORKDIR /app COPY . /app -RUN npm config set registry https://r.ctdn.net -RUN npm config get registry -RUN npm install -RUN npm run build +RUN yarn config set registry https://r.ctdn.net +RUN cd packages/ts-common && yarn && yarn build +RUN cd ../../ && yarn +RUN yarn build EXPOSE 3000 -CMD [ "npm" , "serve"] \ No newline at end of file +CMD [ "yarn" , "serve"] \ No newline at end of file