Some crazy shit right here... mongo in the Dockerfile
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
2023-05-10 13:09:30 -04:00
parent c92cefa903
commit ebf0c6d970

View File

@@ -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 FROM node:20-alpine AS build
ENV NODE_ENV development ENV NODE_ENV development
WORKDIR /home/node/app WORKDIR /home/node/app
@@ -9,7 +14,7 @@ RUN yarn install
RUN yarn build RUN yarn build
## this is stage two , where the app actually runs ## 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} ENV NODE_ENV ${ENV:-production}
WORKDIR /home/node/app WORKDIR /home/node/app
COPY package*.json ./ COPY package*.json ./