From e8ec3f6b26fc3a51cd5e8e937d750e544485520d Mon Sep 17 00:00:00 2001 From: Liam Date: Fri, 27 Oct 2023 12:17:38 +0100 Subject: [PATCH] 7 --- Dockerfile | 3 +++ package.json | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 240a67a..3e62eda 100644 --- a/Dockerfile +++ b/Dockerfile @@ -6,4 +6,7 @@ RUN npm install --silent && mv node_modules ../ COPY . . RUN chown -R node /usr/src/app USER node + +RUN npx tsc + CMD ["npm", "start"] diff --git a/package.json b/package.json index 2a473a6..3dfe49a 100644 --- a/package.json +++ b/package.json @@ -4,7 +4,7 @@ "version": "1.0.0", "main": "dist/index.js", "scripts": { - "start": "tsc && node dist/index.js", + "start": "node dist/index.js", "tsc": "tsc -w", "dev": "nodemon dist/index.js" },