diff --git a/.dockerignore b/.dockerignore index 65e80a00..5bf783e2 100644 --- a/.dockerignore +++ b/.dockerignore @@ -26,9 +26,9 @@ vendor .eslintrc.json .gitattributes .gitignore +.prettierignore .rspec .rubocop.yml -.tool-versions cypress.config.ts fly*.toml karma*.js diff --git a/Dockerfile b/Dockerfile index 13f97d91..95c9ab80 100644 --- a/Dockerfile +++ b/Dockerfile @@ -38,7 +38,9 @@ RUN apk add --no-cache \ WORKDIR /build ENV RACK_ENV=production -COPY --link Gemfile* ./ +COPY --link + .tool-versions \ + Gemfile* ./ RUN --mount=type=cache,id=loot-bundler,target=tmp/vendor/bundle \ bundle config set --local without development:test; \ @@ -75,6 +77,7 @@ RUN \ RUN mkdir -p tmp/pids COPY --link --chown=loot \ + .tool-versions \ config.ru \ docker-entrypoint \ Gemfile* \