Compare commits
1 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
73ac3d2dc6
|
@@ -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
|
||||
|
||||
@@ -8,7 +8,7 @@ services:
|
||||
context: .
|
||||
target: database
|
||||
args:
|
||||
MONGO_VERSION: 6.0.5
|
||||
MONGO_VERSION: latest
|
||||
ports:
|
||||
- 27017:27017
|
||||
networks:
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@mifi/auth-service",
|
||||
"version": "1.0.3",
|
||||
"version": "1.0.4",
|
||||
"author": "mifi (Mike Fitzpatrick)",
|
||||
"license": "MIT",
|
||||
"scripts": {
|
||||
|
||||
Reference in New Issue
Block a user