Skip to content

Commit 1e665f9

Browse files
authored
chore: cache docker layers better (#165)
1 parent 1b0eec5 commit 1e665f9

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

Diff for: docker/Dockerfile

+10-2
Original file line numberDiff line numberDiff line change
@@ -29,18 +29,26 @@ WORKDIR /avo/
2929
COPY Gemfile* /avo/
3030
COPY Rakefile /avo/
3131
COPY avo.gemspec /avo/
32-
COPY package.json /avo/
3332
COPY ./lib/avo.rb /avo/lib/avo.rb
3433
COPY ./lib/avo/version.rb /avo/lib/avo/version.rb
3534
RUN bundle install --jobs 4 --retry 3
3635

36+
COPY package.json /avo/
3737
COPY yarn.lock /avo/
3838

3939
RUN yarn install
4040
RUN yarn check --integrity
4141

42-
COPY . /avo/
42+
COPY ./bin/ /avo/bin/
43+
COPY ./app/frontend/ /avo/app/frontend/
44+
COPY ./config/ /avo/config/
45+
COPY ./.eslintrc.json /avo/.eslintrc.json
46+
COPY ./jsconfig.json /avo/jsconfig.json
47+
COPY ./postcss.config.js /avo/postcss.config.js
48+
COPY ./tailwind.config.js /avo/tailwind.config.js
4349

4450
RUN bin/webpack
4551

52+
COPY . /avo/
53+
4654
RUN bundle exec rails build

0 commit comments

Comments
 (0)