From a7a026b689e3cbe7176f86b10d034ac04e3211cd Mon Sep 17 00:00:00 2001 From: muhammadeko Date: Sat, 30 Apr 2022 13:53:17 +0700 Subject: [PATCH] forgot that i use yarn --- Dockerfile | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/Dockerfile b/Dockerfile index 9a5f2d7..898564b 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,9 +1,8 @@ FROM node:18-slim ADD . /gc_tools WORKDIR /gc_tools -RUN npm install -RUN npm install -g serve -RUN npm run build -CMD ["npm","install","-g","serve"] +RUN ["yarn", "install"] +RUN ["yarn", "run", "build"] +CMD ["yarn","add","serve"] CMD ["serve", "-s", "build"] EXPOSE 3000 \ No newline at end of file