oonyeje-portfolio/Dockerfile
oonyeje ace17bf7c7
All checks were successful
continuous-integration/drone Build is passing
- remove yarn cmd and use entrypoint instead
2023-12-01 15:28:38 -05:00

28 lines
492 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
ENTRYPOINT ["node", "run", "dev", '-p', '3000']