Finishing touches?
This commit is contained in:
2
.gitignore
vendored
2
.gitignore
vendored
@@ -132,4 +132,4 @@ dist
|
|||||||
|
|
||||||
# Project
|
# Project
|
||||||
lib/
|
lib/
|
||||||
|
dist/
|
||||||
|
|||||||
@@ -15,10 +15,10 @@ ENV NODE_ENV development
|
|||||||
ENV NPM_TOKEN $NPM_TOKEN
|
ENV NPM_TOKEN $NPM_TOKEN
|
||||||
WORKDIR /home/node/app
|
WORKDIR /home/node/app
|
||||||
COPY .npmrc /root
|
COPY .npmrc /root
|
||||||
COPY .yarnrc.build.yml /root/.yarnrc.yml
|
COPY .build.yarnrc.yml /root/.yarnrc.yml
|
||||||
COPY lib package*.json tsconfig.json yarn.lock ./
|
COPY . .
|
||||||
RUN yarn set version stable && yarn install
|
RUN yarn set version stable && yarn install
|
||||||
RUN yarn build
|
RUN yarn build:production
|
||||||
|
|
||||||
## this is stage two , where the app actually runs
|
## this is stage two , where the app actually runs
|
||||||
FROM node:20-bullseye-slim AS containerize
|
FROM node:20-bullseye-slim AS containerize
|
||||||
@@ -30,6 +30,6 @@ COPY .npmrc /root
|
|||||||
COPY .build.yarnrc.yml /root/.yarnrc.yml
|
COPY .build.yarnrc.yml /root/.yarnrc.yml
|
||||||
COPY package*.json yarn.lock ./
|
COPY package*.json yarn.lock ./
|
||||||
RUN yarn set version stable && yarn install && yarn cache clean
|
RUN yarn set version stable && yarn install && yarn cache clean
|
||||||
COPY --from=build /home/node/app/dist .
|
COPY --from=build /home/node/app/dist ./
|
||||||
EXPOSE $PORT
|
EXPOSE $PORT
|
||||||
CMD ["node","index.js"]
|
CMD ["node","index.js"]
|
||||||
|
|||||||
@@ -17,7 +17,7 @@ services:
|
|||||||
- auth-db:/data/db
|
- auth-db:/data/db
|
||||||
- auth-db:/data/configdb
|
- auth-db:/data/configdb
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
image: mongo:latest
|
image: ${CONTAINER_PREFIX}-auth-service_mongo:${TAG:-latest}
|
||||||
auth-service:
|
auth-service:
|
||||||
env_file: .env.dev
|
env_file: .env.dev
|
||||||
build:
|
build:
|
||||||
@@ -37,7 +37,7 @@ services:
|
|||||||
- labs-net
|
- labs-net
|
||||||
- backend
|
- backend
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
image: node:20-alpine
|
image: ${CONTAINER_PREFIX}-auth-service:${TAG:-latest}
|
||||||
depends_on:
|
depends_on:
|
||||||
- auth-service_mongo
|
- auth-service_mongo
|
||||||
networks:
|
networks:
|
||||||
|
|||||||
@@ -16,7 +16,7 @@ services:
|
|||||||
- 'auth-db:/data/db'
|
- 'auth-db:/data/db'
|
||||||
- 'auth-db:/data/configdb'
|
- 'auth-db:/data/configdb'
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
image: mongo:4.4
|
image: ${CONTAINER_PREFIX}auth-service_mongo:${DRONE_TAG:-latest}
|
||||||
auth-service:
|
auth-service:
|
||||||
container_name: ${CONTAINER_PREFIX}-auth-service
|
container_name: ${CONTAINER_PREFIX}-auth-service
|
||||||
env_file:
|
env_file:
|
||||||
@@ -42,7 +42,7 @@ services:
|
|||||||
- auth-backend
|
- auth-backend
|
||||||
- docknet
|
- docknet
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
image: node:20-alpine
|
image: ${CONTAINER_PREFIX}auth-service:${DRONE_TAG:-latest}
|
||||||
depends_on:
|
depends_on:
|
||||||
- auth-service_mongo
|
- auth-service_mongo
|
||||||
networks:
|
networks:
|
||||||
|
|||||||
@@ -6,7 +6,7 @@
|
|||||||
"experimentalDecorators": true,
|
"experimentalDecorators": true,
|
||||||
"emitDecoratorMetadata": true,
|
"emitDecoratorMetadata": true,
|
||||||
"noImplicitAny": true,
|
"noImplicitAny": true,
|
||||||
"outDir": "lib/",
|
"outDir": "dist/",
|
||||||
"rootDirs": ["./", "src/"],
|
"rootDirs": ["./", "src/"],
|
||||||
"strict": true,
|
"strict": true,
|
||||||
"esModuleInterop": true,
|
"esModuleInterop": true,
|
||||||
|
|||||||
@@ -6,12 +6,12 @@
|
|||||||
"experimentalDecorators": true,
|
"experimentalDecorators": true,
|
||||||
"emitDecoratorMetadata": true,
|
"emitDecoratorMetadata": true,
|
||||||
"noImplicitAny": true,
|
"noImplicitAny": true,
|
||||||
"outDir": "lib/",
|
"outDir": "dist/",
|
||||||
"rootDirs": ["./", "src/"],
|
"rootDirs": ["./", "src/"],
|
||||||
"strict": true,
|
"strict": true,
|
||||||
"esModuleInterop": true,
|
"esModuleInterop": true,
|
||||||
"sourceMap": false,
|
"sourceMap": false,
|
||||||
"removeComments": true
|
"removeComments": true
|
||||||
},
|
},
|
||||||
"include": ["src"]
|
"include": ["./src"]
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user