upgade package
This commit is contained in:
+18
-13
@@ -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"]
|
||||
|
||||
|
||||
Reference in New Issue
Block a user