This commit is contained in:
Wedge 2021-03-02 18:07:20 +03:00
parent 4e0850d0ed
commit 4a5396522f
1 changed files with 2 additions and 2 deletions

View File

@ -1,6 +1,6 @@
FROM ruby:2.6.6-alpine3.13 as rosa-build-gems 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 && \ 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 apk add --virtual .ruby-builddeps --no-cache postgresql-dev build-base cmake icu-dev
RUN gem install bundler:1.17.3 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 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 && \ 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 && \ 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 FROM scratch
COPY --from=rosa-build-gems / / COPY --from=rosa-build-gems / /