From 1e1d7887577ce5e2b1ceb0c1d08578ca173d5f5f Mon Sep 17 00:00:00 2001 From: Hinaloe Date: Sun, 1 Oct 2017 05:05:24 +0900 Subject: Reduce container size with clean yarn (#3506) * Reduce container size with clean yarn * Merge trouble --- Dockerfile | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'Dockerfile') diff --git a/Dockerfile b/Dockerfile index 431ef5bbe..c3b38fa8b 100644 --- a/Dockerfile +++ b/Dockerfile @@ -60,11 +60,12 @@ RUN apk -U upgrade \ && cd /mastodon \ && rm -rf /tmp/* /var/cache/apk/* -COPY Gemfile Gemfile.lock package.json yarn.lock /mastodon/ +COPY Gemfile Gemfile.lock package.json yarn.lock .yarnclean /mastodon/ RUN bundle config build.nokogiri --with-iconv-lib=/usr/local/lib --with-iconv-include=/usr/local/include \ && bundle install -j$(getconf _NPROCESSORS_ONLN) --deployment --without test development \ - && yarn --pure-lockfile + && yarn --pure-lockfile \ + && yarn cache clean COPY . /mastodon -- cgit