-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
be55e1a
commit b82394e
Showing
13 changed files
with
1,687 additions
and
220 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
Dockerfile | ||
.dockerignore | ||
node_modules | ||
npm-debug.log | ||
README.md | ||
.git | ||
.gitignore | ||
.linterstagedrc.json | ||
jest.config.js | ||
.husky | ||
dist | ||
.vscode | ||
test | ||
|
||
conf/.env | ||
conf/.env.keys | ||
conf/.example.secrets.env | ||
conf/.example.env |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
{ | ||
"$schema": "https://json.schemastore.org/swcrc", | ||
"sourceMaps": true, | ||
"jsc": { | ||
"parser": { | ||
"syntax": "typescript", | ||
"decorators": true, | ||
"dynamicImport": true | ||
}, | ||
"transform": { | ||
"legacyDecorator": true, | ||
"decoratorMetadata": true | ||
}, | ||
"baseUrl": "./" | ||
}, | ||
"minify": false | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
{ | ||
"version": "0.2.0", | ||
"configurations": [ | ||
{ | ||
"type": "node", | ||
"request": "attach", | ||
"name": "Attach to API", | ||
"address": "localhost", | ||
"port": 9229, | ||
"localRoot": "${workspaceFolder}", | ||
"remoteRoot": "/app", | ||
"trace": true, | ||
"restart": true, | ||
"sourceMaps": true, | ||
"skipFiles": ["<node_internals>/**"] | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
FROM node:20-alpine as base | ||
# Check https://github.com/nodejs/docker-node/tree/b4117f9333da4138b03a546ec926ef50a31506c3#nodealpine to understand why libc6-compat might be needed. | ||
RUN apk update && apk add --no-cache libc6-compat | ||
WORKDIR /app | ||
EXPOSE 3000 | ||
|
||
# Rebuild the source code only when needed | ||
FROM base as deps | ||
RUN apk add --no-cache make && apk add --no-cache bash | ||
COPY . . | ||
RUN npm ci | ||
|
||
FROM deps as prod | ||
RUN make build | ||
RUN addgroup --system --gid 1001 nodejs | ||
RUN adduser --system --uid 1001 prod-nodejs | ||
USER prod-nodejs | ||
CMD ["make", "start.prod"] | ||
|
||
FROM deps as dev | ||
EXPOSE 9229 | ||
RUN make build | ||
CMD ["make", "start.debug.open"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
version: '3.7' | ||
|
||
services: | ||
nest-app-develop: | ||
hostname: nest-app-develop | ||
image: nest-app-develop | ||
restart: always | ||
build: | ||
context: . | ||
target: dev | ||
ports: | ||
- 3000:3000 | ||
- 9229:9229 | ||
volumes: | ||
- ./src:/app/src:cached |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.