Trying this...
This commit is contained in:
@@ -1,12 +1,13 @@
|
||||
ARG ENV=production
|
||||
ARG MONGO_VERSION=latest
|
||||
ARG MONGO_VERSION
|
||||
ARG PORT=9001
|
||||
ARG NPM_TOKEN=not_set
|
||||
ARG NPM_TOKEN
|
||||
ARG YARN_VERSION=3.5.0
|
||||
|
||||
## mongo build stage
|
||||
FROM mongo:$MONGO_VERSION AS database
|
||||
COPY docker-entrypoint-initdb.d/mongo-init-$MONGO_VERSION.sh ./docker-entrypoint-initdb.d/mongo-init.sh
|
||||
FROM mongo:${MONGO_VERSION:-latest} AS database
|
||||
ENV NODE_ENV $ENV
|
||||
COPY docker-entrypoint-initdb.d/mongo-init-${MONGO_VERSION:-latest}.sh ./docker-entrypoint-initdb.d/mongo-init.sh
|
||||
|
||||
## stage one, build the service
|
||||
FROM node:20-bullseye-slim AS build
|
||||
|
||||
Reference in New Issue
Block a user