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.

71 lines
2.0 KiB

Version bumps for ruby and misc gems (#1159) * Update rspec-rails to version 3.5.2 * Update addressable to version 2.5.1 * Update autoprefixer-rails to version 6.7.7.1 * Update bullet to version 5.5.1 * Update domain_name to version 0.5.20170404 * Update letter_opener_web to version 1.3.1 * Upate redis-rails to version 5.0.2 * Update active_record_query_trace to version 1.5.4 * Update capistrano-rails to version 1.2.3 * Update dotenv-rails to version 2.2.0 * Update pg to version 0.20.0 * Update tilt to version 2.0.7 * Update warden to version 1.2.7 * Update tins to version 1.13.2 * Update terminal-table to version 1.7.3 * Update oj to version 2.18.5 * Update simplecov to version 0.14.1 * Update uglifier to version 3.1.13 * Update hashdiff to version 0.3.2 * Update webmock to version 2.3.2 * Update devise to version 4.2.1 * Use ruby version 2.4.1 * Update sass to version 3.4.23 * Update puma to version 3.8.2 * Update will_paginate to version 3.1.5 * Update font-awesome-rails to version 4.7.0.1 * Update fuubar to version 2.2.0 * Update pry-rails to version 0.3.6 * Update simple-navigation to version 4.0.5 * Update rubocop to version 0.48.1 * Update doorkeeper to version 4.2.5 * Update faker to version 1.7.3 * Update aws-sdk to version 2.9.5 * Update fabrication to version 2.16.1 * Update hamlit-rails to version 0.2.0 * Update http to version 2.2.1 * Update httplog to version 0.99.2 * Update sidekiq to version 4.2.10 * Update rspec-sidekiq to version 3.0.0 * Update pghero to version 1.6.4 * Update rack-cors to version 0.4.1 * Update i18n-tasks to version 0.9.13 * Update ruby-oembed to version 0.12.0 * Update jquery-rails to version 4.3.1 * Update simple_form to version 3.4.0 * Update react-rails to version 1.11.0 * Update aws-sdk to version 2.9.6 * Update sidekiq-unique-jobs to version 5.0.0 * Update uglifier to version 3.2.0
7 years ago
  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. ARG LIBICONV_VERSION=1.15
  8. ARG LIBICONV_DOWNLOAD_SHA256=ccf536620a45458d26ba83887a983b96827001e92a13847b45e4925cc8913178
  9. EXPOSE 3000 4000
  10. WORKDIR /mastodon
  11. RUN echo "@edge https://nl.alpinelinux.org/alpine/edge/main" >> /etc/apk/repositories \
  12. && echo "@edge https://nl.alpinelinux.org/alpine/edge/community" >> /etc/apk/repositories \
  13. && apk -U upgrade \
  14. && apk add -t build-dependencies \
  15. build-base \
  16. icu-dev \
  17. libidn-dev \
  18. libtool \
  19. postgresql-dev \
  20. protobuf-dev \
  21. python \
  22. && apk add \
  23. ca-certificates \
  24. ffmpeg \
  25. file \
  26. git \
  27. icu-libs \
  28. imagemagick@edge \
  29. libidn \
  30. libpq \
  31. nodejs-npm@edge \
  32. nodejs@edge \
  33. protobuf \
  34. su-exec \
  35. tini \
  36. yarn@edge \
  37. && update-ca-certificates \
  38. && wget -O libiconv.tar.gz "http://ftp.gnu.org/pub/gnu/libiconv/libiconv-$LIBICONV_VERSION.tar.gz" \
  39. && echo "$LIBICONV_DOWNLOAD_SHA256 *libiconv.tar.gz" | sha256sum -c - \
  40. && mkdir -p /tmp/src \
  41. && tar -xzf libiconv.tar.gz -C /tmp/src \
  42. && rm libiconv.tar.gz \
  43. && cd /tmp/src/libiconv-$LIBICONV_VERSION \
  44. && ./configure --prefix=/usr/local \
  45. && make -j$(getconf _NPROCESSORS_ONLN)\
  46. && make install \
  47. && libtool --finish /usr/local/lib \
  48. && cd /mastodon \
  49. && rm -rf /tmp/* /var/cache/apk/*
  50. COPY Gemfile Gemfile.lock package.json yarn.lock /mastodon/
  51. RUN bundle config build.nokogiri --with-iconv-lib=/usr/local/lib --with-iconv-include=/usr/local/include \
  52. && bundle install -j$(getconf _NPROCESSORS_ONLN) --deployment --without test development \
  53. && yarn --ignore-optional --pure-lockfile
  54. COPY . /mastodon
  55. COPY docker_entrypoint.sh /usr/local/bin/run
  56. RUN chmod +x /usr/local/bin/run
  57. VOLUME /mastodon/public/system /mastodon/public/assets /mastodon/public/packs
  58. ENTRYPOINT ["/usr/local/bin/run"]