mirror of
https://github.com/tdurieux/anonymous_github.git
synced 2026-02-12 18:32:44 +00:00
fix: fix and optimize Dockerfile
This commit is contained in:
12
Dockerfile
12
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"]
|
||||
@@ -12,7 +12,7 @@ module.exports = {
|
||||
"public",
|
||||
".git",
|
||||
"db_backups",
|
||||
"dist",
|
||||
"build",
|
||||
],
|
||||
interpreter: "node",
|
||||
interpreter_args: "--require ts-node/register",
|
||||
|
||||
Reference in New Issue
Block a user