mirror of
https://github.com/jcwimer/wrestlingApp
synced 2026-04-21 06:22:00 +00:00
Switched back to puma because I think passenger is crashing docker.
This commit is contained in:
@@ -42,12 +42,6 @@ RUN apt-get -qq update \
|
||||
&& cd ruby-${RUBY_VERSION} \
|
||||
&& ./configure \
|
||||
&& make && make install \
|
||||
&& apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 561F9B9CAC40B2F7 \
|
||||
&& sh -c 'echo deb https://oss-binaries.phusionpassenger.com/apt/passenger $(lsb_release -c --short) main > /etc/apt/sources.list.d/passenger.list' \
|
||||
&& apt-get -qq update \
|
||||
&& DEBIAN_FRONTEND=noninteractive apt-get -qq install -y \
|
||||
passenger \
|
||||
nginx-extras \
|
||||
&& apt-get -qq clean \
|
||||
&& apt-get autoremove -y \
|
||||
&& rm -rf \
|
||||
@@ -87,12 +81,6 @@ RUN rm -rf /rails && mkdir /rails
|
||||
WORKDIR /rails/
|
||||
ADD . /rails/
|
||||
|
||||
# Nginx configurations (nginx does not pass envs which is why you need nginx-env.conf)
|
||||
COPY ./deploy/nginx-wrestlingdev.conf /etc/nginx/sites-available/default
|
||||
COPY ./deploy/nginx-env.conf /etc/nginx/main.d/nginx-env.conf
|
||||
COPY ./deploy/nginx.conf /etc/nginx/nginx.conf
|
||||
RUN echo "passenger_default_user root;" >> /etc/nginx/passenger.conf
|
||||
|
||||
#Need temp secret keys to precompile assets
|
||||
ENV WRESTLINGDEV_SECRET_KEY_BASE 077cdbef5c2ccf22543fb17a67339f234306b7fa2e1e4463d851c444c10a5611829a2290b253da78339427f131571fac9a42c83d960b2d25ecc10a4a0a7ce1a2
|
||||
ENV WRESTLINGDEV_DEVISE_SECRET_KEY 2f29d49db6704377ba263f7cb9db085b386bcb301c0cd501126a674686ab1a109754071165b08cd72af03cec4642a4dd04361c994462254dd5d85e9594e8b9aa
|
||||
@@ -102,6 +90,5 @@ RUN RAILS_ENV=production bundle exec rake assets:precompile
|
||||
ENTRYPOINT ["/tini", "--"]
|
||||
|
||||
WORKDIR /rails
|
||||
#CMD bundle exec puma -t 3:3 -b 'ssl://0.0.0.0:443?key=/ssl/server.key&verify_mode=none&cert=/ssl/server.crt' -e production
|
||||
CMD bundle exec puma -t 5:5 -b 'ssl://0.0.0.0:443?key=/ssl/server.key&verify_mode=none&cert=/ssl/server.crt' -e production
|
||||
#CMD bundle exec passenger start --max-pool-size 3 --environment production --ssl --ssl-certificate /ssl/server.crt --ssl-certificate-key /ssl/server.key
|
||||
CMD ["nginx"]
|
||||
Reference in New Issue
Block a user