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>
21 lines
434 B
Docker
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"]
|