diff --git a/Dockerfile b/Dockerfile index 1b5898ef9..6a12e12b8 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,6 +1,6 @@ FROM ruby:2.6.6-alpine3.13 as rosa-build-gems -WORKDIR /rosa-build +WORKDIR /app/rosa-build RUN apk add --no-cache libpq tzdata ca-certificates git icu rpm nodejs python2 redis && \ apk add --virtual .ruby-builddeps --no-cache postgresql-dev build-base cmake icu-dev RUN gem install bundler:1.17.3 @@ -10,7 +10,7 @@ RUN bundle install --without development test --jobs 16 --clean --deployment --n apk add --no-cache file imagemagick curl gnupg openssh-keygen findutils && \ apk del .ruby-builddeps && rm -rf /root/.bundle && rm -rf /proxy/vendor/bundle/ruby/2.6.0/cache && \ git clone -b 2.2.0 https://github.com/pygments/pygments.git && cd pygments && python setup.py install && cd .. && rm -rf pygments && \ - cd /rosa-build/vendor/bundle/ruby && find -name *.o -exec rm {} \; + cd /app/rosa-build/vendor/bundle/ruby && find -name *.o -exec rm {} \; FROM scratch COPY --from=rosa-build-gems / /