File tree Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Original file line number Diff line number Diff line change @@ -113,6 +113,7 @@ RUN /usr/sbin/passenger-memory-stats
113
113
RUN rm -rf $workdir
114
114
RUN git clone https://github.com/openstreetmap/openstreetmap-website.git $workdir
115
115
WORKDIR $workdir
116
+ RUN git checkout --force 8199002a0fd83a6eec91764bcec9e9e8705c7e5d
116
117
# RUN git checkout master
117
118
118
119
# Install the javascript runtime required by the `execjs` gem in
@@ -121,8 +122,13 @@ RUN echo "gem 'mini_racer'" >> Gemfile
121
122
122
123
RUN gem install nokogiri -- --use-system-libraries
123
124
125
+ RUN apt-get install -y cargo
126
+ RUN git clone https://github.com/shssoichiro/oxipng.git
127
+ RUN cd oxipng && cargo build --release && cp target/release/oxipng /usr/local/bin
128
+
124
129
# Install app dependencies
125
- RUN bundle install
130
+ RUN bundle update mimemagic
131
+ RUN bundle update listen && bundle install
126
132
RUN gem install rake
127
133
128
134
# update vendored iD
@@ -152,6 +158,7 @@ RUN apt-get install -y tzdata
152
158
RUN npm install yarn -g
153
159
RUN bundle exec rake yarn:install
154
160
RUN bundle exec rake i18n:js:export
161
+ RUN sed -i -e 's/config.assets.js_compressor = :uglifier/config.assets.js_compressor = Uglifier.new(:harmony => true)/g' $workdir/config/environments/production.rb
155
162
RUN bundle exec rake assets:precompile
156
163
157
164
# The rack interface requires a `tmp` directory to use openstreetmap-cgimap
You can’t perform that action at this time.
0 commit comments