From 4c8e48d6e3d8eecffa1de9ab72d1929f1e310997 Mon Sep 17 00:00:00 2001 From: Rene Date: Thu, 18 Sep 2025 17:08:12 +0200 Subject: [PATCH] test --- Dockerfile | 17 ++++++++--------- 1 file changed, 8 insertions(+), 9 deletions(-) diff --git a/Dockerfile b/Dockerfile index 461eba8..53052de 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,25 +1,24 @@ FROM ruby:2.7.8 +# Point to Debian archive repos instead of the dead ones + RUN apt-get update -qq && \ curl -sL https://deb.nodesource.com/setup_16.x | bash - && \ apt-get install -y build-essential libpq-dev nodejs && \ useradd --user-group --create-home --shell /bin/false app ENV HOME=/home/app -WORKDIR $HOME/wedding USER app ENV RAILS_ENV=production -# Install gems first -COPY --chown=app:app Gemfile Gemfile.lock ./ -RUN bundle install --without development test +COPY --chown=app:app Gemfile Gemfile.lock $HOME/wedding/ +WORKDIR $HOME/wedding +RUN bundle -# Copy application code -COPY --chown=app:app . ./ -# Precompile assets -RUN bundle exec rake assets:precompile -# Start server CMD ["bundle", "exec", "rails", "server", "-b", "0.0.0.0"] + +COPY --chown=app:app . $HOME/wedding/ +RUN bundle exec rake assets:precompile \ No newline at end of file