闭社主体 forked from https://github.com/tootsuite/mastodon
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

31 lines
613 B

  1. FROM ruby:2.3.1-alpine
  2. ENV RAILS_ENV=production \
  3. NODE_ENV=production
  4. WORKDIR /mastodon
  5. COPY . /mastodon
  6. RUN BUILD_DEPS=" \
  7. postgresql-dev \
  8. libxml2-dev \
  9. libxslt-dev \
  10. build-base" \
  11. && apk -U upgrade && apk add \
  12. $BUILD_DEPS \
  13. nodejs \
  14. libpq \
  15. libxml2 \
  16. libxslt \
  17. ffmpeg \
  18. file \
  19. imagemagick \
  20. && npm install -g npm@3 && npm install -g yarn \
  21. && bundle install --deployment --without test development \
  22. && yarn \
  23. && npm cache clean \
  24. && apk del $BUILD_DEPS \
  25. && rm -rf /tmp/* /var/cache/apk/*
  26. VOLUME /mastodon/public/system /mastodon/public/assets