Skip to content

Commit de1f5aa

Browse files
author
Rub21
committed
Clean and link libraries for ruby version
1 parent 4e9d24b commit de1f5aa

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

images/web/Dockerfile

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -155,12 +155,19 @@ ADD config/action_mailer.rb config/initializers/action_mailer.rb
155155
# Precompile the website assets
156156
RUN apt-get install -y tzdata
157157
RUN npm install yarn -g
158+
158159
RUN bundle exec rake yarn:install
159160
RUN bundle exec rake i18n:js:export
160161
# From https://github.com/lautis/uglifier#readme
161162
RUN sed -i -e 's/config.assets.js_compressor = :uglifier/config.assets.js_compressor = :terser/g' $workdir/config/environments/production.rb
162163
RUN bundle exec rake assets:precompile
163164

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+
164171
# The rack interface requires a `tmp` directory to use openstreetmap-cgimap
165172
RUN ln -s /tmp /var/www/tmp
166173

@@ -184,6 +191,7 @@ RUN apache2ctl configtest
184191
# Set Permissions for www-data
185192
RUN chown -R www-data: /var/www
186193

194+
187195
# Script to start the app
188196
ADD start.sh $workdir/start.sh
189197

0 commit comments

Comments
 (0)