Add character limit patch (2500 chars)

This commit is contained in:
2026-01-17 19:11:10 +01:00
parent 5c2f33dcd4
commit a2c95abc26
2 changed files with 27 additions and 3 deletions

View File

@@ -90,8 +90,15 @@ RUN ldconfig && \
ffmpeg -version && \
ffprobe -version
RUN curl -L https://github.com/tootsuite/mastodon/archive/v${MASTODON_VERSION}.tar.gz | tar -xz --strip-components 1 -f - && \
bundle config --local set deployment 'true' && \
# Download Mastodon source
RUN curl -L https://github.com/tootsuite/mastodon/archive/v${MASTODON_VERSION}.tar.gz | tar -xz --strip-components 1 -f -
# Apply character limit patch
COPY char-limit.patch /tmp/
RUN patch -p1 < /tmp/char-limit.patch
# Install Ruby dependencies
RUN bundle config --local set deployment 'true' && \
bundle config --local set without 'development test' && \
bundle config --local set silence_root_warning true && \
bundle install && \
@@ -100,7 +107,6 @@ RUN curl -L https://github.com/tootsuite/mastodon/archive/v${MASTODON_VERSION}.t
RUN corepack enable && \
corepack prepare --activate
RUN yarn workspaces focus --production @mastodon/mastodon
RUN yarn install
@@ -134,3 +140,4 @@ RUN ln -fs /app/data/system /app/code/public/system
COPY start.sh cleanup.sh config.sh env.template cache-env.sh.template /app/pkg/
CMD [ "/app/pkg/start.sh" ]