--- /dev/null
+FROM ruby:2.2.4
+
+ENV RAILS_ENV=production
+
+RUN apt-get update -qq && apt-get install -y build-essential libpq-dev
+RUN mkdir /mastodon
+
+WORKDIR /mastodon
+
+ADD Gemfile /mastodon/Gemfile
+ADD Gemfile.lock /mastodon/Gemfile.lock
+
+RUN bundle install --deployment --without test --without development
+
+ADD . /mastodon
- Mentions and URLs converted to links in statuses
- REST API, including home and mention timelines
- OAuth2 provider system for the API
+- Upload header image for profile page
Missing:
- Media attachments (photos, videos)
- UI to post, reblog, favourite, follow and unfollow
-- Upload header image for profile page
- Deleting statuses, deletion propagation
- Streaming API
- PostgreSQL
- Redis
+
+## Running with Docker and Docker-Compose
+
+The project now includes a Dockerfile and a docker-compose.yml. You need to turn .env.production sample into .env.production with all the variables set before you can:
+
+ docker-compose build
+
+And finally
+
+ docker-compose up
+
+As usual, the first thing you would need to do would be to run migrations:
+
+ docker-compose run web rake db:migrate