Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 0 additions & 23 deletions .github/workflows/codesee-arch-diagram.yml

This file was deleted.

1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,7 @@ web_modules/
.env.test.local
.env.production.local
.env.local
.env*local

# parcel-bundler cache (https://parceljs.org/)
.cache
Expand Down
28 changes: 23 additions & 5 deletions app/backend/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,13 +1,31 @@
FROM node:18

# Etapa base
FROM node:20 AS base
WORKDIR /app-backend
COPY package*.json ./

COPY package.json .

# Etapa de dependências
FROM base AS deps
RUN npm install

# Etapa de desenvolvimento
FROM base AS dev
ENV NODE_ENV=development
COPY --from=deps /app-backend/node_modules ./node_modules
COPY . .
CMD ["npm", "run", "dev"]

# Etapa de build (produção)
FROM base AS build
ENV NODE_ENV=production
COPY --from=deps /app-backend/node_modules ./node_modules
COPY . .
RUN npm run build

CMD [ "npm", "run", "start" ]
# Etapa final para produção
FROM node:20 AS prod
WORKDIR /app-backend
ENV NODE_ENV=production
COPY --from=build /app-backend/dist ./dist
COPY package*.json ./
RUN npm install --omit=dev
CMD ["node", "dist/index.js"]
11 changes: 0 additions & 11 deletions app/backend/Dockerfile.dev

This file was deleted.

15 changes: 12 additions & 3 deletions app/backend/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@
// "newLine": "crlf", /* Set the newline character for emitting files. */
// "stripInternal": true, /* Disable emitting declarations that have '@internal' in their JSDoc comments. */
// "noEmitHelpers": true, /* Disable generating custom helper functions like '__extends' in compiled output. */
// "noEmitOnError": true, /* Disable emitting files if any type checking errors are reported. */
"noEmitOnError": false, /* Disable emitting files if any type checking errors are reported. */
// "preserveConstEnums": true, /* Disable erasing 'const enum' declarations in generated code. */
// "declarationDir": "./", /* Specify the output directory for generated declaration files. */
// "preserveValueImports": true, /* Preserve unused imported values in the JavaScript output that would otherwise be removed. */
Expand All @@ -85,7 +85,7 @@

/* Type Checking */
"strict": true, /* Enable all strict type-checking options. */
// "noImplicitAny": true, /* Enable error reporting for expressions and declarations with an implied 'any' type. */
"noImplicitAny": false, /* Enable error reporting for expressions and declarations with an implied 'any' type. */
// "strictNullChecks": true, /* When type checking, take into account 'null' and 'undefined'. */
// "strictFunctionTypes": true, /* When assigning functions, check to ensure parameters and the return values are subtype-compatible. */
// "strictBindCallApply": true, /* Check that the arguments for 'bind', 'call', and 'apply' methods match the original function. */
Expand All @@ -107,5 +107,14 @@
/* Completeness */
// "skipDefaultLibCheck": true, /* Skip type checking .d.ts files that are included with TypeScript. */
"skipLibCheck": true /* Skip type checking all .d.ts files. */
}
},
"include": ["src/**/*.ts"],
"exclude": [
"node_modules",
"**/*.spec.ts",
"**/*.test.ts",
"**/*.e2e-spec.ts",
"**/*.d.ts",
"**/dist",
],
}
28 changes: 23 additions & 5 deletions app/frontend/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,13 +1,31 @@
FROM node:18-alpine

# Etapa base
FROM node:20-alpine AS base
WORKDIR /app-frontend
COPY package*.json ./

COPY package.json .

# Etapa de dependências
FROM base AS deps
RUN npm install

# Etapa de desenvolvimento
FROM base AS dev
ENV NODE_ENV=development
COPY --from=deps /app-frontend/node_modules ./node_modules
COPY . .
CMD ["npm", "run", "dev"]

# Etapa de build (produção)
FROM base AS build
ENV NODE_ENV=production
COPY --from=deps /app-frontend/node_modules ./node_modules
COPY . .
RUN npm run build

CMD [ "npm", "run", "start" ]
# Etapa final para produção
FROM node:20-alpine AS prod
WORKDIR /app-frontend
ENV NODE_ENV=production
COPY --from=build /app-frontend/dist ./dist
COPY package*.json ./
RUN npm install --omit=dev
CMD ["node", "dist/index.js"]
28 changes: 23 additions & 5 deletions app/whatsapp-api/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,13 +1,31 @@
FROM node:18

# Etapa base
FROM node:20-alpine AS base
WORKDIR /app-whatsapp-api
COPY package*.json ./

COPY package.json .

# Etapa de dependências
FROM base AS deps
RUN npm install

# Etapa de desenvolvimento
FROM base AS dev
ENV NODE_ENV=development
COPY --from=deps /app-whatsapp-api/node_modules ./node_modules
COPY . .
CMD ["npm", "run", "dev"]

# Etapa de build (produção)
FROM base AS build
ENV NODE_ENV=production
COPY --from=deps /app-whatsapp-api/node_modules ./node_modules
COPY . .
RUN npm run build

CMD [ "npm", "run", "start" ]
# Etapa final para produção
FROM node:20-alpine AS prod
WORKDIR /app-whatsapp-api
ENV NODE_ENV=production
COPY --from=build /app-whatsapp-api/dist ./dist
COPY package*.json ./
RUN npm install --omit=dev
CMD ["node", "dist/index.js"]
11 changes: 0 additions & 11 deletions app/whatsapp-api/Dockerfile.dev

This file was deleted.

14 changes: 12 additions & 2 deletions app/whatsapp-api/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@
// "newLine": "crlf", /* Set the newline character for emitting files. */
// "stripInternal": true, /* Disable emitting declarations that have '@internal' in their JSDoc comments. */
// "noEmitHelpers": true, /* Disable generating custom helper functions like '__extends' in compiled output. */
// "noEmitOnError": true, /* Disable emitting files if any type checking errors are reported. */
"noEmitOnError": false, /* Disable emitting files if any type checking errors are reported. */
// "preserveConstEnums": true, /* Disable erasing 'const enum' declarations in generated code. */
// "declarationDir": "./", /* Specify the output directory for generated declaration files. */
// "preserveValueImports": true, /* Preserve unused imported values in the JavaScript output that would otherwise be removed. */
Expand Down Expand Up @@ -105,5 +105,15 @@
/* Completeness */
// "skipDefaultLibCheck": true, /* Skip type checking .d.ts files that are included with TypeScript. */
"skipLibCheck": true /* Skip type checking all .d.ts files. */
}
},
"exclude": [
"node_modules",
"**/*.spec.ts",
"**/*.test.ts",
"**/*.e2e-spec.ts",
"**/*.d.ts"
],
"include": [
"src/**/*.ts"
],
}
103 changes: 0 additions & 103 deletions docker-compose.dev.yml

This file was deleted.

Loading