forgot that i use yarn

This commit is contained in:
muhammadeko 2022-04-30 13:53:17 +07:00
parent 9626a08c9f
commit a7a026b689
No known key found for this signature in database
GPG Key ID: 51366716C10E98B1

View File

@ -1,9 +1,8 @@
FROM node:18-slim FROM node:18-slim
ADD . /gc_tools ADD . /gc_tools
WORKDIR /gc_tools WORKDIR /gc_tools
RUN npm install RUN ["yarn", "install"]
RUN npm install -g serve RUN ["yarn", "run", "build"]
RUN npm run build CMD ["yarn","add","serve"]
CMD ["npm","install","-g","serve"]
CMD ["serve", "-s", "build"] CMD ["serve", "-s", "build"]
EXPOSE 3000 EXPOSE 3000