File tree Expand file tree Collapse file tree 1 file changed +8
-0
lines changed Expand file tree Collapse file tree 1 file changed +8
-0
lines changed Original file line number Diff line number Diff line change @@ -155,12 +155,19 @@ ADD config/action_mailer.rb config/initializers/action_mailer.rb
155
155
# Precompile the website assets
156
156
RUN apt-get install -y tzdata
157
157
RUN npm install yarn -g
158
+
158
159
RUN bundle exec rake yarn:install
159
160
RUN bundle exec rake i18n:js:export
160
161
# From https://github.com/lautis/uglifier#readme
161
162
RUN sed -i -e 's/config.assets.js_compressor = :uglifier/config.assets.js_compressor = :terser/g' $workdir/config/environments/production.rb
162
163
RUN bundle exec rake assets:precompile
163
164
165
+ # Loading dynamically-linked native libraries
166
+ RUN gem install ffi
167
+
168
+ # Clean all installed gems for Ruby version
169
+ RUN gem pristine --all
170
+
164
171
# The rack interface requires a `tmp` directory to use openstreetmap-cgimap
165
172
RUN ln -s /tmp /var/www/tmp
166
173
@@ -184,6 +191,7 @@ RUN apache2ctl configtest
184
191
# Set Permissions for www-data
185
192
RUN chown -R www-data: /var/www
186
193
194
+
187
195
# Script to start the app
188
196
ADD start.sh $workdir/start.sh
189
197
You can’t perform that action at this time.
0 commit comments