upgade package

This commit is contained in:
CHIEFSOFT\ameye
2024-04-23 14:04:21 -04:00
parent ede879d821
commit 44f6fb0816
966 changed files with 7972 additions and 88698 deletions
+18 -13
View File
@@ -92,30 +92,35 @@ RUN apk add --no-cache --virtual .build-deps-yarn curl gnupg tar \
# smoke test
&& yarn --version
COPY docker-entrypoint.sh /usr/local/bin/
ENTRYPOINT ["docker-entrypoint.sh"]
# set working directory
WORKDIR /app
# WORKDIR /app
WORKDIR /usr/src/app
# add `/app/node_modules/.bin` to $PATH
ENV PATH /app/node_modules/.bin:$PATH
# ENV PATH /app/node_modules/.bin:$PATH
ENV PATH /usr/src/app/node_modules/.bin:$PATH
# install app dependencies
COPY package.json ./
#COPY package-lock.json ./
RUN npm install --silent
RUN npm install react-scripts@3.4.1 -g --silent
RUN npm install -g serve
# RUN yarn install --silent
# RUN npm install react-scripts@3.4.1 -g --silent
# add app
COPY . ./
# build app
RUN npm run-script build
#c RUN yarn run build
# start app
# CMD ["serve", "-s", "build"]
#CMD ["npm","run", "start"]
# CMD ["yarn","run", "preview"]
# set working directory
## WORKDIR /app
# add `/app/node_modules/.bin` to $PATH
##b ENV PATH /app/node_modules/.bin:$PATH
CMD ["npm", "start"]