FROM ruby:3.4-slim@sha256:f68986140e98b6043956af9679af452cd3baaa4c19f9b00440fa06e9006c892a
RUN apt-get update && apt-get install -y --no-install-recommends build-essential libyaml-dev pkg-config && rm -rf /var/lib/apt/lists/*
WORKDIR /app
COPY . .
RUN bundle install && mkdir -p tmp/pids log
ENV RAILS_ENV=development
CMD ["bundle", "exec", "rails", "server", "-b", "0.0.0.0", "-p", "5173"]
