about summary refs log tree commit diff
path: root/Dockerfile
diff options
context:
space:
mode:
authorEugen Rochko <eugen@zeonfederated.com>2016-03-14 21:39:39 +0100
committerEugen Rochko <eugen@zeonfederated.com>2016-03-14 21:39:39 +0100
commitb17202ca0f19b83beb25afdba7e713a0f9329ffa (patch)
treeb37a10279062d6a595e969c1bf9fbefdb04a21a4 /Dockerfile
parent6fec8afc3f91166930c8b4dfca441a5a70a24d5b (diff)
Adding a docker-compose template for running Mastodon easily
Diffstat (limited to 'Dockerfile')
-rw-r--r--Dockerfile15
1 files changed, 15 insertions, 0 deletions
diff --git a/Dockerfile b/Dockerfile
new file mode 100644
index 000000000..f569dbea9
--- /dev/null
+++ b/Dockerfile
@@ -0,0 +1,15 @@
+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