fix: docker

This commit is contained in:
Davidson Gomes 2024-08-15 14:05:52 -03:00
parent 60eb923f64
commit 00cb80f173
3 changed files with 3 additions and 4 deletions

View File

@ -3,9 +3,6 @@ SERVER_PORT=8080
# Server URL - Set your application url
SERVER_URL=http://localhost:8080
TELEMETRY=true
TELEMETRY_URL=
# Cors - * for all or set separate by commas - ex.: 'yourdomain1.com, yourdomain2.com'
CORS_ORIGIN=*
CORS_METHODS=GET,POST,PUT,DELETE

View File

@ -19,6 +19,7 @@ COPY ./prisma ./prisma
COPY ./manager ./manager
COPY ./.env.example ./.env
COPY ./runWithProvider.js ./
COPY ./tsup.config.ts ./
COPY ./Docker ./Docker
@ -49,6 +50,7 @@ COPY --from=builder /evolution/public ./public
COPY --from=builder /evolution/.env ./.env
COPY --from=builder /evolution/Docker ./Docker
COPY --from=builder /evolution/runWithProvider.js ./runWithProvider.js
COPY --from=builder /evolution/tsup.config.ts ./tsup.config.ts
ENV DOCKER_ENV=true

View File

@ -5,7 +5,7 @@
"main": "./dist/main.js",
"type": "commonjs",
"scripts": {
"build": "tsup src/main.ts --out-dir dist",
"build": "tsup",
"start": "tsnd -r tsconfig-paths/register --files --transpile-only ./src/main.ts",
"start:prod": "node dist/main",
"dev:server": "clear && tsnd -r tsconfig-paths/register --files --transpile-only --respawn --ignore-watch node_modules ./src/main.ts",