Skip to content

Commit

Permalink
chore: cache docker layers better (#165)
Browse files Browse the repository at this point in the history
  • Loading branch information
adrianthedev authored Oct 24, 2020
1 parent 1b0eec5 commit 1e665f9
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions docker/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -29,18 +29,26 @@ WORKDIR /avo/
COPY Gemfile* /avo/
COPY Rakefile /avo/
COPY avo.gemspec /avo/
COPY package.json /avo/
COPY ./lib/avo.rb /avo/lib/avo.rb
COPY ./lib/avo/version.rb /avo/lib/avo/version.rb
RUN bundle install --jobs 4 --retry 3

COPY package.json /avo/
COPY yarn.lock /avo/

RUN yarn install
RUN yarn check --integrity

COPY . /avo/
COPY ./bin/ /avo/bin/
COPY ./app/frontend/ /avo/app/frontend/
COPY ./config/ /avo/config/
COPY ./.eslintrc.json /avo/.eslintrc.json
COPY ./jsconfig.json /avo/jsconfig.json
COPY ./postcss.config.js /avo/postcss.config.js
COPY ./tailwind.config.js /avo/tailwind.config.js

RUN bin/webpack

COPY . /avo/

RUN bundle exec rails build

0 comments on commit 1e665f9

Please sign in to comment.