@ -10,10 +10,14 @@ RUN apt-get update -qq && \
|
||||
ENV HOME=/home/app
|
||||
USER app
|
||||
|
||||
ENV RAILS_ENV=production
|
||||
|
||||
COPY --chown=app:app Gemfile Gemfile.lock $HOME/wedding/
|
||||
WORKDIR $HOME/wedding
|
||||
RUN bundle
|
||||
|
||||
|
||||
|
||||
CMD ["bundle", "exec", "rails", "server", "-b", "0.0.0.0"]
|
||||
|
||||
COPY --chown=app:app . $HOME/wedding/
|
||||
|
@ -5,6 +5,7 @@ Rails.application.configure do
|
||||
|
||||
# Code is not reloaded between requests.
|
||||
config.cache_classes = true
|
||||
|
||||
|
||||
#Rails.application.routes.default_url_options[:host] = ENV.fetch("APP_HOST", "0.0.0.0")
|
||||
#Rails.application.routes.default_url_options[:port] = ENV.fetch("APP_PORT", 3000)
|
||||
|
@ -10,6 +10,7 @@ services:
|
||||
|
||||
web:
|
||||
environment:
|
||||
RAILS_ENV: production
|
||||
CANONICAL_URL: beere5:3033, wedding.linepe.de
|
||||
build: .
|
||||
ports:
|
||||
|
Reference in New Issue
Block a user