diff options
author | Shel R <Yiskah.Raphen@gmail.com> | 2017-04-07 22:44:40 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-04-07 22:44:40 -0400 |
commit | abab82ec1e086e257650ceed3d03a4d881e0a12e (patch) | |
tree | a8b7db83af6b84813c5bd951d38ca0334acb9af7 /Dockerfile | |
parent | 07495cc13feb78ae979a8af69a401cce8dcd4e8d (diff) | |
parent | f0797bf8cecd7d8537747bff66fc0363ccc59760 (diff) |
Merge branch 'master' into master
Diffstat (limited to 'Dockerfile')
-rw-r--r-- | Dockerfile | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/Dockerfile b/Dockerfile index bcc911343..57a8f34e9 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 \ @@ -24,8 +29,11 @@ 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/* +COPY . /mastodon + VOLUME /mastodon/public/system /mastodon/public/assets |