Go!
continuous-integration/drone/push Build is failing

This commit is contained in:
mifi committed 2023-05-08 18:53:26 -04:00
1 parent 91a3b2fabf
commit e8f2928543
2 files changed
+13 -16

No files matched your search

+4 -4
View File
@@ -5,14 +5,14 @@ COPY tsconfig.json ./
COPY lib ./lib
RUN ls -a
RUN yarn install
RUN yarn build:production
RUN yarn build
## this is stage two , where the app actually runs
FROM node:20-alpine AS containerize
ENV NODE_ENV ${ENV:-production}
WORKDIR /home/node/app
COPY package*.json ./
RUN yarn install --frozen-lockfile --production
COPY --from=0 /home/node/app/dist .
EXPOSE 9001
EXPOSE 27017
COPY --from=0 /home/node/app/dist/**/*.js .
EXPOSE ${PORT}
CMD ["node","server/index.js"]