Skip to content

Instantly share code, notes, and snippets.

@e-dreyer
Created July 23, 2023 19:40
Show Gist options
  • Save e-dreyer/a82c33deef469bf9aa9042b9f698b0ab to your computer and use it in GitHub Desktop.
Save e-dreyer/a82c33deef469bf9aa9042b9f698b0ab to your computer and use it in GitHub Desktop.
Mastodon Docker file
# Use the official Mastodon image as the base image
FROM tootsuite/mastodon
# Set the environment variables for Mastodon
ENV RAILS_ENV=production
ENV NODE_ENV=production
# Optionally, you may want to modify the database configuration here
# Expose the ports used by Mastodon
EXPOSE 3000 4000
# Start the Mastodon process
CMD ["rails", "s", "-b", "0.0.0.0"]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment