Merge pull request #2775 from AndrewKvalheim/dockerignore
Exclude additional files from Docker images
This commit is contained in:
commit
7c03c5b0e5
2 changed files with 9 additions and 1 deletions
|
|
@ -1,2 +1,10 @@
|
||||||
|
.bundle/cache
|
||||||
|
.git/
|
||||||
|
coverage/
|
||||||
|
db/*.sqlite3
|
||||||
Dockerfile
|
Dockerfile
|
||||||
docker-compose.*
|
docker-compose.*
|
||||||
|
log/
|
||||||
|
public/assets/
|
||||||
|
public/system/
|
||||||
|
tmp/
|
||||||
|
|
|
||||||
|
|
@ -13,7 +13,7 @@ WORKDIR /osem/
|
||||||
RUN export NOKOGIRI_USE_SYSTEM_LIBRARIES=1; bundle install --jobs=3 --retry=3 --without test development
|
RUN export NOKOGIRI_USE_SYSTEM_LIBRARIES=1; bundle install --jobs=3 --retry=3 --without test development
|
||||||
|
|
||||||
# Generate assets
|
# Generate assets
|
||||||
RUN export RAILS_ENV=production; bundle exec rake assets:clobber assets:precompile
|
RUN export RAILS_ENV=production; bundle exec rake assets:precompile
|
||||||
|
|
||||||
ENV RAILS_ENV=production
|
ENV RAILS_ENV=production
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue