Task: Fixed and changed to yarn script in Dockerfile
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Sambo Chea 2021-09-15 08:36:12 +07:00
parent 744c6585bb
commit 1dfad5d122

View File

@ -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"]
CMD [ "yarn" , "serve"]