Shouldn't matter... directory structure
Some checks failed
continuous-integration/drone/push Build is failing

This commit is contained in:
2023-05-10 20:04:27 -04:00
parent a07e4ad9cc
commit 65ff23e406
6 changed files with 6 additions and 5 deletions

View File

@@ -205,7 +205,7 @@ volumes:
host:
path: /volume1/docker/beethoven/labs-auth/staging.env
- name: mongo-init
path: /drone/auth/mongo-init.js
path: /drone/auth/docker/docker-entrypoint-initdb.d/mongo-init.js
depends_on:
- Test Pipeline

View File

@@ -2,9 +2,9 @@
FROM node:20-alpine AS build
ENV NODE_ENV development
WORKDIR /home/node/app
COPY package*.json ./
COPY tsconfig.json ./
COPY lib ./lib
COPY ../package*.json ./
COPY ../tsconfig.json ./
COPY ../lib ./lib
RUN ls -a
RUN yarn install
RUN yarn build
@@ -13,7 +13,7 @@ RUN yarn build
FROM node:20-alpine AS auth-service
ENV NODE_ENV ${ENV:-production}
WORKDIR /home/node/app
COPY package*.json ./
COPY ../package*.json ./
RUN yarn install --frozen-lockfile --production
COPY --from=0 /home/node/app/dist .
EXPOSE ${PORT:-9001}

View File

@@ -1,4 +1,5 @@
/* eslint-disable no-undef */
db = db.getSiblingDB(process.env.DB_NAME);
db.createUser({
user: process.env.DB_USERNAME,
pwd: process.env.DB_PASSWORD,