mirror of
https://github.com/astuto/astuto.git
synced 2025-12-15 19:27:52 +01:00
Switch from webpacker to (css|js)bundling-rails (#227)
* Install jsbundling-rails, uninstall rails/webpacker * Remove outdated step from run-tests workflow * Use cssbundling-rails for CSS
This commit is contained in:
committed by
GitHub
parent
e79d550070
commit
d8cf46c351
@@ -35,20 +35,13 @@ COPY . ${APP_ROOT}/
|
||||
|
||||
# Compile assets if production
|
||||
# SECRET_KEY_BASE=1 is a workaround (see https://github.com/rails/rails/issues/32947)
|
||||
RUN if [ "$ENVIRONMENT" = "production" ]; then RAILS_ENV=development bundle exec rake webpacker:compile; fi
|
||||
RUN if [ "$ENVIRONMENT" = "production" ]; then RAILS_ENV=development ./bin/rails assets:precompile; fi
|
||||
|
||||
###
|
||||
### Dev stage ###
|
||||
###
|
||||
FROM builder AS dev
|
||||
|
||||
# Install Foreman to launch multiple processes from Procfile
|
||||
RUN gem install foreman
|
||||
|
||||
# Install Google Chrome to run system specs
|
||||
RUN wget https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb
|
||||
RUN dpkg -i google-chrome-stable_current_amd64.deb; apt-get -fy install
|
||||
|
||||
ENTRYPOINT ["./docker-entrypoint-dev.sh"]
|
||||
|
||||
EXPOSE 3000
|
||||
|
||||
Reference in New Issue
Block a user