2022-12-12 14:21:25 +01:00
|
|
|
FROM ruby:2.7
|
2017-11-10 17:02:07 +01:00
|
|
|
|
|
|
|
# Install dependencies
|
2022-02-19 20:53:58 +01:00
|
|
|
RUN deps='libmagic-dev chromium nodejs' && \
|
2017-11-10 17:02:07 +01:00
|
|
|
apt-get update && \
|
|
|
|
apt-get install --no-install-recommends -y $deps && \
|
|
|
|
rm -Rf /var/lib/apt/lists/* /var/cache/apt/*
|
|
|
|
|
|
|
|
ENV PORT=3000 \
|
|
|
|
SMTP_SERVER_PORT=2525 \
|
|
|
|
RAILS_ENV=development \
|
|
|
|
RAILS_LOG_TO_STDOUT=true \
|
|
|
|
RAILS_SERVE_STATIC_FILES=true \
|
|
|
|
\
|
2019-10-28 09:39:32 +01:00
|
|
|
CHROMIUM_FLAGS=--no-sandbox \
|
|
|
|
\
|
2021-03-02 19:18:57 +01:00
|
|
|
BUNDLE_PATH=/usr/local/bundle \
|
|
|
|
BUNDLE_APP_CONFIG=/usr/local/bundle/config
|
2017-11-10 17:02:07 +01:00
|
|
|
|
2021-03-02 19:18:57 +01:00
|
|
|
WORKDIR /app
|
2017-11-10 17:02:07 +01:00
|
|
|
|
2022-12-12 14:21:25 +01:00
|
|
|
RUN gem install bundler
|
2021-03-02 19:18:57 +01:00
|
|
|
RUN bundle config build.nokogiri "--use-system-libraries"
|
2017-11-10 17:02:07 +01:00
|
|
|
|
|
|
|
EXPOSE 3000
|
|
|
|
|
|
|
|
# cleanup, and by default start web process from Procfile
|
|
|
|
ENTRYPOINT ["./docker-entrypoint.sh"]
|
|
|
|
CMD ["./proc-start", "web"]
|