Skip to content

Commit 8e3e71b

Browse files
author
Rub21
committed
Fix osm web site compilation
1 parent 73dda54 commit 8e3e71b

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

images/web/Dockerfile

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,6 +113,7 @@ RUN /usr/sbin/passenger-memory-stats
113113
RUN rm -rf $workdir
114114
RUN git clone https://github.com/openstreetmap/openstreetmap-website.git $workdir
115115
WORKDIR $workdir
116+
RUN git checkout --force 8199002a0fd83a6eec91764bcec9e9e8705c7e5d
116117
# RUN git checkout master
117118

118119
# Install the javascript runtime required by the `execjs` gem in
@@ -121,8 +122,13 @@ RUN echo "gem 'mini_racer'" >> Gemfile
121122

122123
RUN gem install nokogiri -- --use-system-libraries
123124

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+
124129
# Install app dependencies
125-
RUN bundle install
130+
RUN bundle update mimemagic
131+
RUN bundle update listen && bundle install
126132
RUN gem install rake
127133

128134
# update vendored iD
@@ -152,6 +158,7 @@ RUN apt-get install -y tzdata
152158
RUN npm install yarn -g
153159
RUN bundle exec rake yarn:install
154160
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
155162
RUN bundle exec rake assets:precompile
156163

157164
# The rack interface requires a `tmp` directory to use openstreetmap-cgimap

0 commit comments

Comments
 (0)