Skip to content

Commit f2a9451

Browse files
author
Vidas P
committed
Don't use vendor/cache when creating image
Allways redownload gems instead of depending on `vendor/cache`.
1 parent 3aa3862 commit f2a9451

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
88
## [current]
99
### Fixed
1010
- Update loofah (CVE-2019-15587)
11+
- Don't use vendor/cache when building docker image
1112

1213
## [0.9.5] - 2019-10-16
1314
### Added

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ COPY ./ /app/
99

1010
# Get rid of annoying "fatal: Not a git repository (or any of the parent directories): .git" messages
1111
RUN umask 002 && git init && \
12-
LC_ALL=en_US.UTF-8 RAILS_ENV=production SECRET_KEY_BASE=secret DATABASE_ADAPTER=postgresql bundle install --without "test development" --path vendor/bundle -j 4 --force --deployment && \
12+
LC_ALL=en_US.UTF-8 RAILS_ENV=production SECRET_KEY_BASE=secret DATABASE_ADAPTER=postgresql bundle install --without "test development" --path vendor/bundle -j 4 --no-local --no-cache --force && \
1313
LC_ALL=en_US.UTF-8 RAILS_ENV=production SECRET_KEY_BASE=secret DATABASE_ADAPTER=postgresql bundle exec rake assets:clean assets:precompile && \
1414
chmod g=u /app/Gemfile.lock /app/config/ /app/tmp/
1515

0 commit comments

Comments
 (0)