about summary refs log tree commit diff
path: root/Dockerfile
diff options
context:
space:
mode:
authorfoxiehkins <foxiehkins@gmail.com>2017-04-07 14:01:20 +0100
committerGitHub <noreply@github.com>2017-04-07 14:01:20 +0100
commit41396de7a90f23dd0afe1afa3dab1be43b7b6ecd (patch)
tree5cacec3a442a671990f972196fa90c90903e83cf /Dockerfile
parentac1989d2c07b707699641987d62697103698393c (diff)
parent4e41cd9ab8f51120d558b70528b163c98993be53 (diff)
Merge branch 'master' into master
Diffstat (limited to 'Dockerfile')
-rw-r--r--Dockerfile9
1 files changed, 8 insertions, 1 deletions
diff --git a/Dockerfile b/Dockerfile
index bcc911343..c28287cca 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -1,11 +1,16 @@
 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 . /mastodon
+COPY Gemfile Gemfile.lock package.json yarn.lock /mastodon/
 
 RUN BUILD_DEPS=" \
     postgresql-dev \
@@ -28,4 +33,6 @@ RUN BUILD_DEPS=" \
  && apk del $BUILD_DEPS \
  && rm -rf /tmp/* /var/cache/apk/*
 
+COPY . /mastodon
+
 VOLUME /mastodon/public/system /mastodon/public/assets