about summary refs log tree commit diff
path: root/Dockerfile
diff options
context:
space:
mode:
authorShel R <Yiskah.Raphen@gmail.com>2017-04-07 22:49:14 -0400
committerGitHub <noreply@github.com>2017-04-07 22:49:14 -0400
commitb67b60fec3adecffef544924a7776cce9b0a2633 (patch)
treeb592548a0a8cc6e9f1cbdf91df04e197503c070f /Dockerfile
parentacf6436a993b514aa2fffffb8a03d3718c5a49a0 (diff)
parentcc16fa75137586dff8eb1ef4e508aed81bf21718 (diff)
Merge branch 'master' into patch-2
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/*