Some checks reported errors
continuous-integration/drone Build encountered an error
28 lines
483 B
Docker
28 lines
483 B
Docker
FROM node:20 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'] |