The code powering m.abunchtell.com https://m.abunchtell.com
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.
 
 
 
 

46 lines
1.0 KiB

  1. FROM ruby:2.4.1-alpine
  2. LABEL maintainer="https://github.com/tootsuite/mastodon" \
  3. description="A GNU Social-compatible microblogging server"
  4. ENV RAILS_ENV=production \
  5. NODE_ENV=production
  6. EXPOSE 3000 4000
  7. WORKDIR /mastodon
  8. RUN echo "@edge https://nl.alpinelinux.org/alpine/edge/main" >> /etc/apk/repositories \
  9. && BUILD_DEPS=" \
  10. postgresql-dev \
  11. libxml2-dev \
  12. libxslt-dev \
  13. python \
  14. build-base \
  15. protobuf-dev" \
  16. && apk -U upgrade && apk add \
  17. $BUILD_DEPS \
  18. nodejs@edge \
  19. nodejs-npm@edge \
  20. git \
  21. libpq \
  22. libxml2 \
  23. libxslt \
  24. ffmpeg \
  25. file \
  26. imagemagick@edge \
  27. ca-certificates \
  28. protobuf \
  29. && npm install -g npm@3 && npm install -g yarn \
  30. && update-ca-certificates \
  31. && rm -rf /tmp/* /var/cache/apk/*
  32. COPY Gemfile Gemfile.lock package.json yarn.lock /mastodon/
  33. RUN bundle install --deployment --without test development \
  34. && yarn --ignore-optional --pure-lockfile
  35. COPY . /mastodon
  36. VOLUME /mastodon/public/system /mastodon/public/assets /mastodon/public/packs