Skip to content

Commit

Permalink
Include .tool-versions in docker image & ignore .prettierignore
Browse files Browse the repository at this point in the history
  • Loading branch information
scottohara committed Feb 20, 2024
1 parent 7f41720 commit 0a6f8d6
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .dockerignore
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,9 @@ vendor
.eslintrc.json
.gitattributes
.gitignore
.prettierignore
.rspec
.rubocop.yml
.tool-versions
cypress.config.ts
fly*.toml
karma*.js
Expand Down
5 changes: 4 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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; \
Expand Down Expand Up @@ -75,6 +77,7 @@ RUN \
RUN mkdir -p tmp/pids

COPY --link --chown=loot \
.tool-versions \
config.ru \
docker-entrypoint \
Gemfile* \
Expand Down

0 comments on commit 0a6f8d6

Please sign in to comment.