This commit is contained in:
CHIEFSOFT\ameye
2024-04-23 16:44:19 -04:00
parent 7c70f5bd6c
commit a8dcd611d1
5 changed files with 21 additions and 24 deletions
+14 -15
View File
@@ -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"]