Docker can't detect external git changes — Gemfile.lock change is the signal. Workflow: after pushing rubbs, run bundle update bbs and commit the new Gemfile.lock. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
18 lines
235 B
Docker
18 lines
235 B
Docker
FROM ruby:3.3-alpine
|
|
|
|
RUN apk add --no-cache git build-base
|
|
|
|
WORKDIR /app
|
|
|
|
COPY Gemfile Gemfile.lock ./
|
|
RUN bundle install
|
|
|
|
COPY bbs.rb ./
|
|
COPY lib/ ./lib/
|
|
|
|
RUN mkdir -p /app/data
|
|
|
|
EXPOSE 2323
|
|
|
|
CMD ["bundle", "exec", "ruby", "bbs.rb"]
|