Again...
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
2023-05-10 13:50:13 -04:00
parent c3a689a007
commit da36606af3
2 changed files with 7 additions and 9 deletions

View File

@@ -1,9 +1,3 @@
## stage zero, setup mongo
FROM mongo:latest
WORKDIR /docker-entrypoint-initdb.d
COPY mongo-init.js ./
EXPOSE 27017
## stage one, build the service
FROM node:20-alpine AS build
ENV NODE_ENV development
@@ -16,11 +10,11 @@ RUN yarn install
RUN yarn build
## this is stage two , where the app actually runs
FROM node:20-alpine AS containerize
FROM node:20-alpine AS auth-service
ENV NODE_ENV ${ENV:-production}
WORKDIR /home/node/app
COPY package*.json ./
RUN yarn install --frozen-lockfile --production
COPY --from=1 /home/node/app/dist .
COPY --from=0 /home/node/app/dist .
EXPOSE ${PORT:-9001}
CMD ["node","server/index.js"]