fix build

This commit is contained in:
Yusuf Yilmaz 2022-06-07 11:22:50 +02:00
parent 5415482e09
commit cd19fb2e4c
2 changed files with 4 additions and 4 deletions

View File

@ -52,7 +52,8 @@ EXPOSE ${PORT}
STOPSIGNAL SIGINT STOPSIGNAL SIGINT
ENTRYPOINT [ "bash", "docker-entrypoint.sh" ] ENTRYPOINT [ "bash", "docker-entrypoint.sh" ]
RUN yarn build:nostatic RUN yarn remove:files
RUN yarn build:typescript
COPY static /app/dist/static COPY static /app/dist/static
HEALTHCHECK --interval=30s --timeout=30s --start-period=5s \ HEALTHCHECK --interval=30s --timeout=30s --start-period=5s \

View File

@ -89,10 +89,9 @@
"copy:files": "copyFiles -u 1 static/**/* dist/static", "copy:files": "copyFiles -u 1 static/**/* dist/static",
"remove:files": "rimraf dist", "remove:files": "rimraf dist",
"test:unit": "jest --config config/jest.config.js", "test:unit": "jest --config config/jest.config.js",
"build:nostatic": "yarn remove:files && tsc --project ./", "build:typescript": "tsc --project tsconfig.json",
"build:typescript": "tsc --project tsconfig.json && tscpaths -p tsconfig.json -s ./src -o ./dist",
"build": "yarn remove:files && yarn copy:files && yarn build:typescript", "build": "yarn remove:files && yarn copy:files && yarn build:typescript",
"start": "node -r tsconfig-paths/register -r ts-node ./dist/src/server.js", "start": "TS_NODE_BASEURL=./dist node -r tsconfig-paths/register ./dist/src/server.js",
"dev": "nodemon", "dev": "nodemon",
"lint": "eslint src --fix", "lint": "eslint src --fix",
"types:check": "tsc --noEmit --pretty", "types:check": "tsc --noEmit --pretty",