osem-fcy/Dockerfile.production
Andrew Kvalheim 5de5d7b55c
Exclude additional files from Docker images
Excludes a few more files that are temporary, build artifacts, test
artifacts, runtime artifacts, or not used by the application. This has
the consequence of no longer needing to clear compiled assets during
build.
2021-07-05 19:31:29 +02:00

17 lines
396 B
Text

FROM opensuse/infrastructure/osem/containers/osem/base
# 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:precompile
ENV RAILS_ENV=production
CMD ["foreman", "start"]