Respect .yarnrc in Dockerfile (#7297)

This commit is contained in:
Abenet Tamiru 2020-04-15 15:55:01 +02:00 committed by GitHub
parent 6c8cbabdff
commit ab3a416cfc
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -7,7 +7,7 @@ FROM ruby:2.7.1-alpine3.10
#------------------------------------------------------------------------------
RUN apk update -qq && apk add git nodejs postgresql-client ruby-dev build-base \
less libxml2-dev libxslt-dev pcre-dev libffi-dev postgresql-dev tzdata imagemagick \
libcurl curl-dev
libcurl curl-dev yarn
#------------------------------------------------------------------------------
#
@ -16,15 +16,6 @@ RUN apk update -qq && apk add git nodejs postgresql-client ruby-dev build-base \
#------------------------------------------------------------------------------
RUN gem install bundler:2.1.4
#------------------------------------------------------------------------------
#
# Install Yarn
#
#------------------------------------------------------------------------------
ENV PATH=/root/.yarn/bin:$PATH
RUN apk add --no-cache --repository=http://dl-cdn.alpinelinux.org/alpine/edge/community \
yarn
#------------------------------------------------------------------------------
#
# Define working directory
@ -46,7 +37,8 @@ RUN bundle install --jobs 20 --retry 5
# Copy Package.json and yarn.lock
#
#------------------------------------------------------------------------------
COPY ./package.json ./yarn.lock ./
COPY ./package.json ./yarn.lock ./.yarnrc ./
COPY ./.yarn ./.yarn
#------------------------------------------------------------------------------
#