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.

24 lines
762 B

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