oonyeje-portfolio/Dockerfile
oonyeje 27a6ab91fc
Some checks reported errors
continuous-integration/drone Build encountered an error
- update ci
2023-12-01 10:46:18 -05:00

28 lines
476 B
Docker

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