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:46:36 -0400
committerGitHub <noreply@github.com>2017-04-07 22:46:36 -0400
commite7d7a99fbc78c7dbf763279aa4262580cabd8e1f (patch)
tree6f1fce572c176a73aeacffa948c51ca3bf797596 /Dockerfile
parentf0d1107c530d43432f2e19a2c74aff6cdfbd2b83 (diff)
parent8d27de32b31f1093ab7c6eb177dfb9b866a1203e (diff)
Merge branch 'master' into patch-1
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/*