Files
rails-test/Dockerfile
2026-01-15 12:26:30 +06:30

19 lines
351 B
Docker

FROM ruby:3.2-slim
RUN apt-get update -qq && \
apt-get install -y build-essential libmariadb-dev git curl && \
rm -rf /var/lib/apt/lists/*
WORKDIR /app
COPY Gemfile Gemfile.lock ./
RUN bundle install
COPY . .
RUN bundle exec rails assets:precompile 2>/dev/null || true
EXPOSE 3000
CMD ["bundle", "exec", "puma", "-C", "config/puma.rb"]