Some crazy shit right here... mongo in the Dockerfile
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
@@ -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 ./
|
||||
|
||||
Reference in New Issue
Block a user