mirror of
https://github.com/openSUSE/osem.git
synced 2026-08-13 11:44:02 +00:00
20 lines
501 B
Text
20 lines
501 B
Text
FROM registry.opensuse.org/opensuse/infrastructure/osem/containers/osem/base
|
|
|
|
# Install bundler & foreman
|
|
RUN gem install bundler:1.17.3 foreman
|
|
|
|
# Add our files
|
|
COPY --chown=1000:1000 . /osem/
|
|
|
|
USER osem
|
|
WORKDIR /osem/
|
|
|
|
# Install our bundle
|
|
RUN export NOKOGIRI_USE_SYSTEM_LIBRARIES=1; bundle install --jobs=3 --retry=3 --without test development
|
|
|
|
# Generate assets
|
|
RUN export RAILS_ENV=production; bundle exec rake assets:clobber assets:precompile
|
|
|
|
ENV RAILS_ENV=production
|
|
|
|
CMD ["foreman", "start"]
|