fixed docker settings

This commit is contained in:
Sebastian
2021-09-24 17:26:03 -06:00
parent 1efb892053
commit 0acc51dbd2
10 changed files with 23 additions and 23 deletions
+10 -7
View File
@@ -1,9 +1,12 @@
FROM node:16.9.1-alpine3.11
FROM node:16-alpine as build-step
RUN mkdir /app
WORKDIR /app
COPY package*.json ./
ENV PATH /app/node_modules/.bin:$PATH
COPY package*.json /app
RUN npm install
# COPY . ./
EXPOSE 3000
RUN chown -R node /app/node_modules
USER node
CMD [ "npm", "start"]
COPY . /app
# USER node
RUN npm run build
FROM nginx:1-alpine
COPY --from=build-step /app/build /usr/share/nginx/html