Install production gems

This commit is contained in:
Daniel Schädler 2026-04-19 11:45:49 +02:00
parent f75aee8700
commit 6f5aaff24a
1 changed files with 1 additions and 1 deletions

View File

@ -1,5 +1,6 @@
ARG base_commit ARG base_commit
FROM ruby:3.1.2-slim FROM ruby:3.1.2-slim
ENV RAILS_ENV production
# RUN apk add --no-cache build-base tzdata sqlite sqlite-dev postgresql-dev git && gem install tzinfo-data # RUN apk add --no-cache build-base tzdata sqlite sqlite-dev postgresql-dev git && gem install tzinfo-data
RUN apt-get update -qq && apt-get install -y openssl git build-essential libpq-dev nodejs && apt-get clean && gem install tzinfo-data RUN apt-get update -qq && apt-get install -y openssl git build-essential libpq-dev nodejs && apt-get clean && gem install tzinfo-data
WORKDIR /app WORKDIR /app
@ -14,6 +15,5 @@ COPY script /app/script
COPY config.ru Rakefile /app/ COPY config.ru Rakefile /app/
# Duplicate production environment to beta environment # Duplicate production environment to beta environment
COPY config/environments/production.rb config/environments/beta.rb COPY config/environments/production.rb config/environments/beta.rb
ENV RAILS_ENV production
EXPOSE 3000 EXPOSE 3000
CMD bundle exec rails db:migrate && bundle exec rails s -p 3000 -b 0.0.0.0 CMD bundle exec rails db:migrate && bundle exec rails s -p 3000 -b 0.0.0.0