Fix port run issue
This commit is contained in:
parent
2eebc4f79e
commit
a355656f4d
1 changed files with 2 additions and 32 deletions
|
|
@ -23,38 +23,8 @@ WORKDIR /app
|
||||||
COPY package*.json ./
|
COPY package*.json ./
|
||||||
COPY --from=builder /app/build ./build
|
COPY --from=builder /app/build ./build
|
||||||
|
|
||||||
ENV PORT=3001
|
ENV PORT=3005
|
||||||
|
|
||||||
EXPOSE 3001
|
EXPOSE 3005
|
||||||
USER node
|
USER node
|
||||||
CMD ["serve", "-s", "build"]
|
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"]
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue