diff --git a/Dockerfile b/Dockerfile index c07bf6f..09bf077 100644 --- a/Dockerfile +++ b/Dockerfile @@ -10,12 +10,16 @@ RUN npm install pm2 -g && pm2 install typescript && npm cache clean --force; COPY package.json . COPY package-lock.json . -RUN npm install && npm run build && npm cache clean --force - +COPY tsconfig.json . COPY ecosystem.config.js . COPY healthcheck.js . -COPY src . + +COPY src ./src +COPY public ./public COPY index.ts . -COPY public . +COPY config.ts . + +RUN npm install && npm run build && npm cache clean --force + CMD [ "pm2-runtime", "ecosystem.config.js"] \ No newline at end of file diff --git a/ecosystem.config.js b/ecosystem.config.js index f36fd2b..be38b74 100644 --- a/ecosystem.config.js +++ b/ecosystem.config.js @@ -12,7 +12,7 @@ module.exports = { "public", ".git", "db_backups", - "dist", + "build", ], interpreter: "node", interpreter_args: "--require ts-node/register",