diff --git a/Dockerfile b/Dockerfile index db241cfc4..97a8a0392 100644 --- a/Dockerfile +++ b/Dockerfile @@ -50,7 +50,9 @@ ENV OPENSSL_CONF=/app/openssl_legacy.cnf WORKDIR /app -RUN echo '@edge https://dl-cdn.alpinelinux.org/alpine/edge/community' >> /etc/apk/repositories && apk add --no-cache sqlite-dev libpq-dev mariadb-dev openexr@edge libdeflate@edge vips-dev@edge redis libheif@edge vips-heif@edge gcompat ttf-freefont && mkdir /fonts && rm /usr/share/fonts/freefont/FreeSans.otf +RUN echo '@edge https://dl-cdn.alpinelinux.org/alpine/edge/main' >> /etc/apk/repositories && \ + echo '@edge https://dl-cdn.alpinelinux.org/alpine/edge/community' >> /etc/apk/repositories && \ + apk add --no-cache x265-libs@edge RUN echo $'.include = /etc/ssl/openssl.cnf\n\ \n\ @@ -66,7 +68,11 @@ activate = 1' >> /app/openssl_legacy.cnf COPY ./Gemfile ./Gemfile.lock ./ -RUN apk add --no-cache build-base && bundle install && apk del --no-cache build-base && rm -rf ~/.bundle /usr/local/bundle/cache && ruby -e "puts Dir['/usr/local/bundle/**/{spec,rdoc,resources/shared,resources/collation,resources/locales}']" | xargs rm -rf +RUN apk add --no-cache build-base postgresql-dev && \ + bundle install && \ + apk del --no-cache build-base postgresql-dev && \ + rm -rf ~/.bundle /usr/local/bundle/cache && \ + ruby -e "puts Dir['/usr/local/bundle/**/{spec,rdoc,resources/shared,resources/collation,resources/locales}']" | xargs rm -rf COPY ./bin ./bin COPY ./app ./app