diff options
author | Shel R <Yiskah.Raphen@gmail.com> | 2017-04-07 22:53:42 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-04-07 22:53:42 -0400 |
commit | 3c5b0c55cb0dacc8471bcab98147dc86d5df12ed (patch) | |
tree | d9debdce95dec993c4e69bf966876c3775db59ea /Dockerfile | |
parent | 8a4ff30ceb4a81a215c1aebf404dd8776fde3c02 (diff) | |
parent | 0dcf3c6abebfab4619f8c47785e821abe339dba1 (diff) |
Merge branch 'master' into master
Diffstat (limited to 'Dockerfile')
-rw-r--r-- | Dockerfile | 8 |
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/* |