Files
rails-test/Dockerfile
Min Zeya Phyo 1ce1d28930 Create required tmp directories in Dockerfile
Add mkdir for tmp/pids, tmp/cache, tmp/sockets, log, db, and storage
directories to prevent Puma startup failure.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-20 09:27:52 +06:30

21 lines
434 B
Docker

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