-
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.
Merge pull request #4 from bancodobrasil/feat/add-metrics
Feat/add metrics
- Loading branch information
Showing
12 changed files
with
17,911 additions
and
758 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 |
---|---|---|
@@ -1,5 +1,10 @@ | ||
node_modules | ||
docker-compose.yml | ||
.git | ||
.gitignore | ||
.env* | ||
Dockerfile | ||
.dockerignore | ||
node_modules | ||
npm-debug.log | ||
dist | ||
dist |
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 @@ | ||
*.exe filter=lfs diff=lfs merge=lfs -text |
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,24 @@ | ||
{ | ||
"name": "Launch app", | ||
"type": "node", | ||
"request": "launch", | ||
"args": [ | ||
"src/main.ts" | ||
], | ||
"runtimeArgs": [ | ||
"-r", | ||
"ts-node/register", | ||
"-r", | ||
"tsconfig-paths/register" | ||
], | ||
"cwd": "${workspaceRoot}", | ||
"protocol": "inspector", | ||
"internalConsoleOptions": "openOnSessionStart", | ||
"env": { | ||
"NODE_ENV": "local", | ||
"NODE_PORT": "9000" | ||
}, | ||
"sourceMaps": true, | ||
"console": "internalConsole", | ||
"outputCapture": "std" | ||
} |
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 |
---|---|---|
@@ -1,20 +1,15 @@ | ||
# Base image | ||
FROM node:18 | ||
FROM node:16-alpine | ||
|
||
# Create app directory | ||
WORKDIR /usr/src/app | ||
WORKDIR /app | ||
|
||
# A wildcard is used to ensure both package.json AND package-lock.json are copied | ||
COPY package*.json ./ | ||
COPY package.json yarn.lock ./ | ||
|
||
# Install app dependencies | ||
RUN npm install | ||
RUN yarn install --frozen-lockfile && yarn cache clean | ||
|
||
# Bundle app source | ||
COPY . . | ||
|
||
# Creates a "dist" folder with the production build | ||
RUN npm run build | ||
RUN yarn build | ||
|
||
# Start the server using the production build | ||
CMD [ "node", "dist/src/main.js" ] | ||
EXPOSE 3000 | ||
|
||
CMD ["yarn", "start"] |
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.