Add entrypoint.sh that updates rubbs before starting
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -7,11 +7,11 @@ WORKDIR /app
|
|||||||
COPY Gemfile Gemfile.lock ./
|
COPY Gemfile Gemfile.lock ./
|
||||||
RUN bundle install
|
RUN bundle install
|
||||||
|
|
||||||
COPY bbs.rb ./
|
COPY bbs.rb entrypoint.sh ./
|
||||||
COPY lib/ ./lib/
|
COPY lib/ ./lib/
|
||||||
|
|
||||||
RUN mkdir -p /app/data
|
RUN mkdir -p /app/data && chmod +x entrypoint.sh
|
||||||
|
|
||||||
EXPOSE 2323
|
EXPOSE 2323
|
||||||
|
|
||||||
CMD ["bundle", "exec", "ruby", "bbs.rb"]
|
ENTRYPOINT ["./entrypoint.sh"]
|
||||||
|
|||||||
4
entrypoint.sh
Normal file
4
entrypoint.sh
Normal file
@@ -0,0 +1,4 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
set -e
|
||||||
|
bundle update bbs
|
||||||
|
exec bundle exec ruby bbs.rb
|
||||||
Reference in New Issue
Block a user