Skip to content

Commit

Permalink
feat: updated docker file
Browse files Browse the repository at this point in the history
  • Loading branch information
AnthonyLzq committed Dec 19, 2021
1 parent 30569ab commit b795b85
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions example/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
2 changes: 1 addition & 1 deletion example/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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 <sluzquinosa@uni.pe>",
Expand Down
4 changes: 2 additions & 2 deletions lib/src/functions/docker.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit b795b85

Please sign in to comment.