oonyeje-portfolio/Dockerfile
oonyeje 0e0e10bfe5
Some checks failed
continuous-integration/drone Build is failing
- add install yarn command to dockerfile
2023-12-01 10:02:41 -05:00

26 lines
433 B
Docker

FROM node:18.8-alpine as base
FROM base as builder
WORKDIR /home/node/app
COPY package*.json ./
COPY . .
RUN yarn install
# RUN yarn build
FROM base as runtime
# ENV NODE_ENV=production
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
EXPOSE 3000
CMD ["yarn", "dev", '-p', '3000']