??
Some checks failed
continuous-integration/drone/push Build is failing

This commit is contained in:
2023-05-10 13:28:04 -04:00
parent 08a5b44660
commit b0ed748712

View File

@@ -1,8 +1,10 @@
## stage zero, setup mongo
FROM mongo:latest
ENV NODE_ENV development
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
WORKDIR /home/node/app
@@ -14,7 +16,7 @@ RUN yarn install
RUN yarn build
## this is stage two , where the app actually runs
FROM node:20-alpine AS auth-service
FROM node:20-alpine AS containerize
ENV NODE_ENV ${ENV:-production}
WORKDIR /home/node/app
COPY package*.json ./