Fix port run issue

This commit is contained in:
oitsjustjose 2020-10-20 22:51:18 -05:00
commit a355656f4d

View file

@ -23,38 +23,8 @@ WORKDIR /app
COPY package*.json ./
COPY --from=builder /app/build ./build
ENV PORT=3001
ENV PORT=3005
EXPOSE 3001
EXPOSE 3005
USER node
CMD ["serve", "-s", "build"]
# FROM node:14 AS builder
# WORKDIR /usr/src/app
# COPY package*.json ./
# RUN npm install --production
# COPY . .
# RUN npm run build
# FROM node:14-alpine AS server
# WORKDIR /usr/src/app
# USER node
# EXPOSE 3001
# COPY package*.json ./
# COPY --from=builder /usr/src/app/build ./build
# RUN npm install -g serve
# ENV NODE_ENV=production
# CMD ["serve", "-s", "build"]