File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -118,8 +118,9 @@ RUN git checkout --force 8199002a0fd83a6eec91764bcec9e9e8705c7e5d
118
118
119
119
# Install the javascript runtime required by the `execjs` gem in
120
120
RUN apt-get install -y libv8-dev
121
- RUN echo "gem 'mini_racer'" >> Gemfile
122
- RUN gem install nokogiri -- --use-system-libraries
121
+ # RUN echo "gem 'mini_racer'" >> Gemfile
122
+ RUN echo "gem 'terser', '~> 1.1.3'" >> Gemfile
123
+ # RUN gem install nokogiri -- --use-system-libraries
123
124
124
125
RUN apt-get install -y cargo
125
126
RUN git clone https://github.com/shssoichiro/oxipng.git
@@ -155,7 +156,8 @@ RUN apt-get install -y tzdata
155
156
RUN npm install yarn -g
156
157
RUN bundle exec rake yarn:install
157
158
RUN bundle exec rake i18n:js:export
158
- RUN sed -i -e 's/config.assets.js_compressor = :uglifier/config.assets.js_compressor = Uglifier.new(:harmony => true)/g' $workdir/config/environments/production.rb
159
+ # From https://github.com/lautis/uglifier#readme
160
+ RUN sed -i -e 's/config.assets.js_compressor = :uglifier/config.assets.js_compressor = :terser/g' $workdir/config/environments/production.rb
159
161
RUN bundle exec rake assets:precompile
160
162
161
163
# The rack interface requires a `tmp` directory to use openstreetmap-cgimap
You can’t perform that action at this time.
0 commit comments