mirror of
https://github.com/tdurieux/anonymous_github.git
synced 2026-07-04 20:57:56 +02:00
fix: fix and optimize Dockerfile
This commit is contained in:
+8
-4
@@ -10,12 +10,16 @@ RUN npm install pm2 -g && pm2 install typescript && npm cache clean --force;
|
|||||||
COPY package.json .
|
COPY package.json .
|
||||||
COPY package-lock.json .
|
COPY package-lock.json .
|
||||||
|
|
||||||
RUN npm install && npm run build && npm cache clean --force
|
COPY tsconfig.json .
|
||||||
|
|
||||||
COPY ecosystem.config.js .
|
COPY ecosystem.config.js .
|
||||||
COPY healthcheck.js .
|
COPY healthcheck.js .
|
||||||
COPY src .
|
|
||||||
|
COPY src ./src
|
||||||
|
COPY public ./public
|
||||||
COPY index.ts .
|
COPY index.ts .
|
||||||
COPY public .
|
COPY config.ts .
|
||||||
|
|
||||||
|
RUN npm install && npm run build && npm cache clean --force
|
||||||
|
|
||||||
|
|
||||||
CMD [ "pm2-runtime", "ecosystem.config.js"]
|
CMD [ "pm2-runtime", "ecosystem.config.js"]
|
||||||
+1
-1
@@ -12,7 +12,7 @@ module.exports = {
|
|||||||
"public",
|
"public",
|
||||||
".git",
|
".git",
|
||||||
"db_backups",
|
"db_backups",
|
||||||
"dist",
|
"build",
|
||||||
],
|
],
|
||||||
interpreter: "node",
|
interpreter: "node",
|
||||||
interpreter_args: "--require ts-node/register",
|
interpreter_args: "--require ts-node/register",
|
||||||
|
|||||||
Reference in New Issue
Block a user