npm run
This commit is contained in:
+3
-3
@@ -103,17 +103,17 @@ ENV PATH /usr/src/app/node_modules/.bin:$PATH
|
|||||||
# install app dependencies
|
# install app dependencies
|
||||||
COPY package.json ./
|
COPY package.json ./
|
||||||
#COPY package-lock.json ./
|
#COPY package-lock.json ./
|
||||||
# RUN yarn install --silent
|
RUN npm install --silent
|
||||||
# RUN npm install react-scripts@3.4.1 -g --silent
|
# RUN npm install react-scripts@3.4.1 -g --silent
|
||||||
|
|
||||||
# add app
|
# add app
|
||||||
COPY . ./
|
COPY . ./
|
||||||
#c RUN yarn run build
|
RUN npm run build
|
||||||
|
|
||||||
# start app
|
# start app
|
||||||
#CMD ["npm","run", "start"]
|
#CMD ["npm","run", "start"]
|
||||||
|
|
||||||
# CMD ["yarn","run", "preview"]
|
CMD ["npm","run", "preview"]
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user