fix load
This commit is contained in:
+14
-15
@@ -1,23 +1,22 @@
|
||||
# pull official base image
|
||||
#FROM node:13.12.0-alpine
|
||||
FROM node:18.19.0-alpine
|
||||
# set working directory
|
||||
WORKDIR /usr/src/app
|
||||
# FROM node:erbium
|
||||
# pull the base image
|
||||
# FROM node:alpine
|
||||
FROM node:18-alpine
|
||||
|
||||
ENV PATH /usr/src/app/node_modules/.bin:$PATH
|
||||
WORKDIR /app
|
||||
|
||||
# install app dependencies
|
||||
COPY package.json ./
|
||||
#COPY package-lock.json ./
|
||||
RUN npm install --silent
|
||||
# RUN npm install react-scripts@3.4.1 -g --silent
|
||||
COPY package.json .
|
||||
|
||||
# add app
|
||||
COPY . ./
|
||||
RUN npm run build
|
||||
RUN npm install
|
||||
|
||||
COPY . .
|
||||
|
||||
RUN npm run build
|
||||
|
||||
CMD [ "npm", "run", "dev" ,"--", "--host"]
|
||||
|
||||
# start app
|
||||
#CMD ["npm","run", "start"]
|
||||
|
||||
CMD ["npm","run", "preview"]
|
||||
#CMD ["npm","run", "preview"]
|
||||
|
||||
|
||||
Reference in New Issue
Block a user