Skip to content

Commit

Permalink
🐳 Optimize context and image size
Browse files Browse the repository at this point in the history
  • Loading branch information
fabienjuif authored Nov 26, 2018
1 parent c3a91f8 commit a692310
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
6 changes: 6 additions & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
**

!Dockerfile
!package.json
!yarn.lock
!packages/
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ ENV NODE_ENV=production
# build gitmoji-changelog from source
COPY . /usr/src/gitmoji-changelog
WORKDIR /usr/src/gitmoji-changelog
RUN yarn --frozen-lockfile
RUN yarn --frozen-lockfile && yarn cache clean

# run gitmoji-changelog on /usr/src/app
ENTRYPOINT ["/usr/src/gitmoji-changelog/node_modules/.bin/gitmoji-changelog"]

0 comments on commit a692310

Please sign in to comment.