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.
 
 
 
 

45 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. COPY Gemfile Gemfile.lock package.json yarn.lock /mastodon/
  9. RUN echo "@edge https://nl.alpinelinux.org/alpine/edge/main" >> /etc/apk/repositories \
  10. && BUILD_DEPS=" \
  11. postgresql-dev \
  12. libxml2-dev \
  13. libxslt-dev \
  14. python \
  15. build-base" \
  16. && apk -U upgrade && apk add \
  17. $BUILD_DEPS \
  18. nodejs@edge \
  19. nodejs-npm@edge \
  20. libpq \
  21. libxml2 \
  22. libxslt \
  23. ffmpeg \
  24. file \
  25. imagemagick@edge \
  26. ca-certificates \
  27. && npm install -g npm@3 && npm install -g yarn \
  28. && bundle install --deployment --without test development \
  29. && yarn --ignore-optional \
  30. && yarn cache clean \
  31. && npm -g cache clean \
  32. && update-ca-certificates \
  33. && apk del $BUILD_DEPS \
  34. && rm -rf /tmp/* /var/cache/apk/*
  35. COPY . /mastodon
  36. VOLUME /mastodon/public/system /mastodon/public/assets