Trying this...

This commit is contained in:
2023-05-25 12:33:21 -04:00
parent 5500a5644d
commit 73ac3d2dc6
4 changed files with 7 additions and 6 deletions

View File

@@ -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

View File

@@ -8,7 +8,7 @@ services:
context: .
target: database
args:
MONGO_VERSION: 6.0.5
MONGO_VERSION: latest
ports:
- 27017:27017
networks:

View File

@@ -1,6 +1,6 @@
{
"name": "@mifi/auth-service",
"version": "1.0.3",
"version": "1.0.4",
"author": "mifi (Mike Fitzpatrick)",
"license": "MIT",
"scripts": {