about summary refs log tree commit diff
path: root/Dockerfile
diff options
context:
space:
mode:
authorShel R <Yiskah.Raphen@gmail.com>2017-04-07 23:08:41 -0400
committerGitHub <noreply@github.com>2017-04-07 23:08:41 -0400
commit315ff648c8ab9f3bb34e2b6b1f77453159e260c4 (patch)
treeb3793cec5458e83ad0d7053d7f85a174d05a5523 /Dockerfile
parent94536af96d9884e2acb2c34d0cf8948b1de7dd5d (diff)
parent41923d1c6ba28df6652aefd9619acc33a5cf467a (diff)
Merge branch 'master' into list-oulipo-social
Diffstat (limited to 'Dockerfile')
-rw-r--r--Dockerfile8
1 files changed, 7 insertions, 1 deletions
diff --git a/Dockerfile b/Dockerfile
index f5eb08893..57a8f34e9 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -1,8 +1,13 @@
 FROM ruby:2.3.1-alpine
 
+LABEL maintainer="https://github.com/tootsuite/mastodon" \
+      description="A GNU Social-compatible microblogging server"
+
 ENV RAILS_ENV=production \
     NODE_ENV=production
 
+EXPOSE 3000 4000
+
 WORKDIR /mastodon
 
 COPY Gemfile Gemfile.lock package.json yarn.lock /mastodon/
@@ -24,7 +29,8 @@ RUN BUILD_DEPS=" \
  && npm install -g npm@3 && npm install -g yarn \
  && bundle install --deployment --without test development \
  && yarn \
- && npm cache clean \
+ && yarn cache clean \
+ && npm -g cache clean \
  && apk del $BUILD_DEPS \
  && rm -rf /tmp/* /var/cache/apk/*