mirror of
https://github.com/TracksApp/tracks.git
synced 2025-12-16 07:10:12 +01:00
Add asset stuff back to being included by default for non-Docker users; move more asset-related packages to the group
This commit is contained in:
parent
ad87729e31
commit
f5f0193b60
3 changed files with 18 additions and 19 deletions
|
|
@ -41,13 +41,13 @@ EXPOSE 3000
|
|||
CMD ["./bin/rails", "server", "-b", "0.0.0.0"]
|
||||
|
||||
FROM base AS precompile
|
||||
RUN bundle config set with assets
|
||||
RUN bundle config set deployment true
|
||||
RUN bundle install --jobs 4
|
||||
RUN RAILS_GROUPS=assets bundle exec rake assets:precompile
|
||||
|
||||
# Build the environment-specific stuff
|
||||
FROM base AS production
|
||||
RUN bundle config set without assets
|
||||
RUN bundle config --global frozen 1
|
||||
RUN bundle install --jobs 4
|
||||
COPY --from=precompile /app/public/assets /app/public/assets
|
||||
|
|
@ -56,10 +56,11 @@ FROM base AS test
|
|||
COPY test /app/test/
|
||||
# For testing the API client
|
||||
COPY doc /app/doc/
|
||||
RUN bundle config set with development test assets
|
||||
RUN bundle config set without assets
|
||||
RUN bundle config set with development test
|
||||
RUN bundle config --global frozen 1
|
||||
RUN bundle install --jobs 4
|
||||
RUN RAILS_GROUPS=assets bundle exec rake assets:precompile
|
||||
COPY --from=precompile /app/public/assets /app/public/assets
|
||||
|
||||
FROM base AS development
|
||||
RUN bundle config set with development test
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue