- update dockerfile

This commit is contained in:
oonyeje 2023-12-01 10:23:17 -05:00
parent 0e0e10bfe5
commit bb0b75126a

View File

@ -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