imgs added

This commit is contained in:
LENOVO-YOGAI7\toks
2022-04-24 17:48:03 -07:00
parent e397645911
commit a2c7d94793
14 changed files with 77 additions and 14 deletions
+7 -7
View File
@@ -1,7 +1,5 @@
FROM node:12-alpine
COPY docker-entrypoint.sh /usr/local/bin/
ENTRYPOINT ["docker-entrypoint.sh"]
# pull official base image
FROM node:13.12.0-alpine
# set working directory
WORKDIR /app
@@ -19,9 +17,11 @@ RUN npm install -g serve
# add app
COPY . ./
# start app
CMD ["npm", "start"]
# build app
RUN npm run-script build
#RUN npm run-script build
# start app
CMD ["serve", "-s", "build"]
#CMD ["serve", "-s", "build"]