oonyeje-portfolio/Dockerfile
oonyeje a399f4d5ef
Some checks failed
continuous-integration/drone Build is failing
- use alpine image
2025-02-23 00:02:57 -05:00

28 lines
490 B
Docker

FROM node:20-alpine 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 ["node", "run", "dev", "-p", "3000"]