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.
 
 
 
 

60 lines
1.3 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 UID=991 GID=991 \
  5. RAILS_SERVE_STATIC_FILES=true \
  6. RAILS_ENV=production NODE_ENV=production
  7. EXPOSE 3000 4000
  8. WORKDIR /mastodon
  9. RUN echo "@edge https://nl.alpinelinux.org/alpine/edge/main" >> /etc/apk/repositories \
  10. && echo "@edge https://nl.alpinelinux.org/alpine/edge/community" >> /etc/apk/repositories \
  11. && apk -U upgrade \
  12. && apk add -t build-dependencies \
  13. build-base \
  14. icu-dev \
  15. libidn-dev \
  16. libxml2-dev \
  17. libxslt-dev \
  18. postgresql-dev \
  19. protobuf-dev \
  20. python \
  21. && apk add \
  22. ca-certificates \
  23. ffmpeg \
  24. file \
  25. git \
  26. icu-libs \
  27. imagemagick@edge \
  28. libidn \
  29. libpq \
  30. libxml2 \
  31. libxslt \
  32. nodejs-npm@edge \
  33. nodejs@edge \
  34. protobuf \
  35. su-exec \
  36. tini \
  37. yarn@edge \
  38. && update-ca-certificates \
  39. && rm -rf /tmp/* /var/cache/apk/*
  40. COPY Gemfile Gemfile.lock package.json yarn.lock /mastodon/
  41. RUN bundle install --deployment --without test development \
  42. && yarn --ignore-optional --pure-lockfile
  43. COPY . /mastodon
  44. COPY docker_entrypoint.sh /usr/local/bin/run
  45. RUN chmod +x /usr/local/bin/run
  46. VOLUME /mastodon/public/system /mastodon/public/assets /mastodon/public/packs
  47. ENTRYPOINT ["/usr/local/bin/run"]