闭社主体 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.

20 lines
622 B

  1. FROM ruby:2.2.4
  2. ENV RAILS_ENV=production
  3. RUN echo 'deb http://httpredir.debian.org/debian jessie-backports main contrib non-free' >> /etc/apt/sources.list
  4. RUN apt-get update -qq && apt-get install -y build-essential libpq-dev libxml2-dev libxslt1-dev nodejs nodejs-legacy npm ffmpeg && rm -rf /var/lib/apt/lists/*
  5. RUN mkdir /mastodon
  6. WORKDIR /mastodon
  7. ADD Gemfile /mastodon/Gemfile
  8. ADD Gemfile.lock /mastodon/Gemfile.lock
  9. RUN bundle install --deployment --without test development
  10. ADD package.json /mastodon/package.json
  11. RUN npm install
  12. ADD . /mastodon
  13. VOLUME ["/mastodon/public/system", "/mastodon/public/assets"]