From ebf0c6d970f3393e0e353e2ffff1b309ea043b1d Mon Sep 17 00:00:00 2001 From: mifi Date: Wed, 10 May 2023 13:09:30 -0400 Subject: [PATCH] Some crazy shit right here... mongo in the Dockerfile --- Dockerfile | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 82ff5cc..04304d0 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,3 +1,8 @@ +FROM mongo:latest AS auth-service_mongo +ENV NODE_ENV development +WORKDIR /docker-entrypoint-initdb.d +COPY mongo-init.js ./ + FROM node:20-alpine AS build ENV NODE_ENV development WORKDIR /home/node/app @@ -9,7 +14,7 @@ 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 ./