This repository has been archived on 2023-05-17. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
auth/Dockerfile
mifi d800311ae7
Some checks failed
continuous-integration/drone/push Build encountered an error
- ENV updates
2023-05-06 09:08:15 -04:00

19 lines
437 B
Docker

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