Skip to content

Commit

Permalink
feat: updated docker file and ignored git folder to be generated manu…
Browse files Browse the repository at this point in the history
…ally by docker
  • Loading branch information
AnthonyLzq committed Dec 13, 2021
1 parent 1405884 commit 33c1b0d
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 0 deletions.
2 changes: 2 additions & 0 deletions example/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -124,3 +124,5 @@ typings/
# .pnp.*

# End of https://www.toptal.com/developers/gitignore/api/node,yarn

dist
6 changes: 6 additions & 0 deletions example/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,12 @@ COPY package.json ./

RUN yarn install --prod

RUN yarn add webpack webpack-node-externals -D

RUN yarn build

RUN yarn remove webpack webpack-node-externals

COPY dist /app/dist

CMD [ "yarn", "start" ]
6 changes: 6 additions & 0 deletions lib/src/functions/docker.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,12 @@ COPY package.json ./
RUN yarn install --prod
RUN yarn add webpack webpack-node-externals -D
RUN yarn build
RUN yarn remove webpack webpack-node-externals
COPY dist /app/dist
CMD [ "yarn", "start" ]
Expand Down
2 changes: 2 additions & 0 deletions lib/src/functions/gitignore.js
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,8 @@ typings/
# .pnp.*
# End of https://www.toptal.com/developers/gitignore/api/node,yarn
dist
`,
gitignoreFile: '.gitignore'
}
Expand Down

0 comments on commit 33c1b0d

Please sign in to comment.