Skip to content

Instantly share code, notes, and snippets.

@Exagone313
Last active December 2, 2024 23:05
Show Gist options
  • Select an option

  • Save Exagone313/be23566e2c8eee3cabf97073be4302fb to your computer and use it in GitHub Desktop.

Select an option

Save Exagone313/be23566e2c8eee3cabf97073be4302fb to your computer and use it in GitHub Desktop.
Mastodon patched Docker image
#!/bin/sh
podman build --format docker -t ghcr.io/exagone313/mastodon:v4.3.1 .
podman push ghcr.io/exagone313/mastodon:v4.3.1
FROM ghcr.io/mastodon/mastodon:v4.3.1
USER root
RUN sed -i 's/500/2048/g' app/validators/status_length_validator.rb
RUN \
# Precompile bootsnap code for faster Rails startup
bundle exec bootsnap precompile --gemfile app/ lib/;
# Set the running user for resulting container
USER mastodon
# Set container tini as default entry point
ENTRYPOINT ["/usr/bin/tini", "--"]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment