diff --git a/example/Dockerfile b/example/Dockerfile index 06e5de7..07671b5 100644 --- a/example/Dockerfile +++ b/example/Dockerfile @@ -6,11 +6,11 @@ COPY package.json ./ RUN yarn install --prod -RUN yarn add webpack webpack-node-externals -D +RUN yarn add webpack webpack-node-externals tsconfig-paths-webpack-plugin -D RUN yarn build -RUN yarn remove webpack webpack-node-externals +RUN yarn remove webpack webpack-node-externals tsconfig-paths-webpack-plugin COPY dist /app/dist diff --git a/example/package.json b/example/package.json index 9d64dee..382da46 100644 --- a/example/package.json +++ b/example/package.json @@ -8,7 +8,7 @@ "build": "webpack --mode production", "lint": "eslint src/* --ext .ts --fix", "service": "nodemon", - "start": "node -r dotenv/config dist/index.js", + "start": "node dist/index.js", "release": "standard-version" }, "author": "AnthonyLzq ", diff --git a/lib/src/functions/docker.js b/lib/src/functions/docker.js index aa2f9d3..6b718b1 100644 --- a/lib/src/functions/docker.js +++ b/lib/src/functions/docker.js @@ -14,11 +14,11 @@ COPY package.json ./ RUN yarn install --prod -RUN yarn add webpack webpack-node-externals -D +RUN yarn add webpack webpack-node-externals tsconfig-paths-webpack-plugin -D RUN yarn build -RUN yarn remove webpack webpack-node-externals +RUN yarn remove webpack webpack-node-externals tsconfig-paths-webpack-plugin COPY dist /app/dist