Browse Source

Installing libxml2 and libxslt on Docker (#9680)

Yamagishi Kazutoshi 2 months ago
parent
commit
ea03faa167
1 changed files with 5 additions and 1 deletions
  1. 5
    1
      Dockerfile

+ 5
- 1
Dockerfile View File

@@ -31,6 +31,8 @@ RUN apk -U upgrade \
31 31
     libidn-dev \
32 32
     libressl \
33 33
     libtool \
34
+    libxml2-dev \
35
+    libxslt-dev \
34 36
     postgresql-dev \
35 37
     protobuf-dev \
36 38
     python \
@@ -43,6 +45,8 @@ RUN apk -U upgrade \
43 45
     imagemagick \
44 46
     libidn \
45 47
     libpq \
48
+    libxml2 \
49
+    libxslt \
46 50
     protobuf \
47 51
     tini \
48 52
     tzdata \
@@ -64,7 +68,7 @@ RUN apk -U upgrade \
64 68
 
65 69
 COPY Gemfile Gemfile.lock package.json yarn.lock .yarnclean /mastodon/
66 70
 
67
-RUN bundle config build.nokogiri --with-iconv-lib=/usr/local/lib --with-iconv-include=/usr/local/include \
71
+RUN bundle config build.nokogiri --use-system-libraries --with-iconv-lib=/usr/local/lib --with-iconv-include=/usr/local/include \
68 72
  && bundle install -j$(getconf _NPROCESSORS_ONLN) --deployment --without test development \
69 73
  && yarn install --pure-lockfile --ignore-engines \
70 74
  && yarn cache clean

Loading…
Cancel
Save