From c1b84b34bacc112a1385e0b660b798f9e1debec7 Mon Sep 17 00:00:00 2001 From: JianMiau Date: Mon, 11 Sep 2023 16:16:25 +0800 Subject: [PATCH] [mod] --- Dockerfile | 1 + package.json | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 04b5cd7..5be241b 100644 --- a/Dockerfile +++ b/Dockerfile @@ -21,6 +21,7 @@ RUN npm prune --prod # move RUN rm -rf /app \ && mv dist /app \ + && mv certificate /app \ && mv .env /app \ && mv node_modules /app/ \ && rm -rf /src diff --git a/package.json b/package.json index 0f9b05e..7cf71b2 100644 --- a/package.json +++ b/package.json @@ -6,6 +6,7 @@ "scripts": { "start": "npm run dev", "dev": "tsrpc-cli dev", + "prod": "node index.js", "debug": "set NODE_ENV=dev && nodemon --exec \"node --require ts-node/register --inspect=127.0.0.1:9229 src/index.ts\"", "build": "tsrpc-cli build", "doc": "tsrpc-cli doc", @@ -34,4 +35,4 @@ "fs": "^0.0.1-security", "tsrpc": "^3.4.12" } -} +} \ No newline at end of file