2 Commits

Author SHA1 Message Date
b0ed748712 ??
Some checks failed
continuous-integration/drone/push Build is failing
2023-05-10 13:28:04 -04:00
08a5b44660 hmmm 2023-05-10 13:19:49 -04:00

View File

@@ -1,8 +1,10 @@
FROM mongo:latest AS auth-service_mongo
ENV NODE_ENV development
## 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
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 ./