osem-fcy/Dockerfile.production
Henne Vogelsang 2a7acf7369 Fixup INSTALL.md
- add a big fat warning
- Do not mentioned the deprecated docker setup anymore
- Fixup docker-compose production setup
2019-02-01 01:00:19 +01:00

17 lines
371 B
Text

FROM 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:clobber assets:precompile
ENV RAILS_ENV=production
CMD ["foreman", "start"]