Last active
December 2, 2024 23:05
-
-
Save Exagone313/be23566e2c8eee3cabf97073be4302fb to your computer and use it in GitHub Desktop.
Mastodon patched Docker image
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/sh | |
| podman build --format docker -t ghcr.io/exagone313/mastodon:v4.3.1 . | |
| podman push ghcr.io/exagone313/mastodon:v4.3.1 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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