From 4244a2cc12bb315458c648291434a5863fad730c Mon Sep 17 00:00:00 2001 From: Zsolt Tasnadi Date: Thu, 30 Apr 2026 10:37:18 +0200 Subject: [PATCH] Add entrypoint.sh that updates rubbs before starting Co-Authored-By: Claude Sonnet 4.6 --- Dockerfile | 6 +++--- entrypoint.sh | 4 ++++ 2 files changed, 7 insertions(+), 3 deletions(-) create mode 100644 entrypoint.sh diff --git a/Dockerfile b/Dockerfile index b80ef55..2681deb 100644 --- a/Dockerfile +++ b/Dockerfile @@ -7,11 +7,11 @@ WORKDIR /app COPY Gemfile Gemfile.lock ./ RUN bundle install -COPY bbs.rb ./ +COPY bbs.rb entrypoint.sh ./ COPY lib/ ./lib/ -RUN mkdir -p /app/data +RUN mkdir -p /app/data && chmod +x entrypoint.sh EXPOSE 2323 -CMD ["bundle", "exec", "ruby", "bbs.rb"] +ENTRYPOINT ["./entrypoint.sh"] diff --git a/entrypoint.sh b/entrypoint.sh new file mode 100644 index 0000000..65410e4 --- /dev/null +++ b/entrypoint.sh @@ -0,0 +1,4 @@ +#!/bin/sh +set -e +bundle update bbs +exec bundle exec ruby bbs.rb