- update dockerfile
This commit is contained in:
parent
0e0e10bfe5
commit
bb0b75126a
18
Dockerfile
18
Dockerfile
@ -6,20 +6,22 @@ WORKDIR /home/node/app
|
||||
COPY package*.json ./
|
||||
|
||||
COPY . .
|
||||
RUN npm install yarn
|
||||
RUN yarn install
|
||||
# RUN yarn build
|
||||
RUN yarn build
|
||||
|
||||
FROM base as runtime
|
||||
# FROM base as runtime
|
||||
|
||||
# ENV NODE_ENV=production
|
||||
|
||||
WORKDIR /home/node/app
|
||||
COPY package*.json ./
|
||||
# WORKDIR /home/node/app
|
||||
# COPY package*.json ./
|
||||
|
||||
RUN npm install yarn
|
||||
RUN yarn install --production
|
||||
COPY --from=builder /home/node/app/dist ./dist
|
||||
COPY --from=builder /home/node/app/build ./build
|
||||
# RUN npm install yarn
|
||||
# RUN yarn build
|
||||
# RUN yarn install --production
|
||||
# COPY --from=runtime /home/node/app/dist ./dist
|
||||
# COPY --from=runtime /home/node/app/build ./build
|
||||
|
||||
EXPOSE 3000
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user