diff options
author | Shel R <Yiskah.Raphen@gmail.com> | 2017-04-07 22:41:07 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-04-07 22:41:07 -0400 |
commit | 9edee2e64f30667e6f848bb7e27adb82cf1f91cd (patch) | |
tree | 1eb422e98bd7aefb687fd9d0938c669e7e6783f8 /Dockerfile | |
parent | 30619a67168c0f021d37daa5d717e7a508cafd49 (diff) | |
parent | d7e1a282fe95fe04e918f52bdd476dedc6e97d01 (diff) |
Merge branch 'master' into patch-1
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 |