Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 8 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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\
Expand All @@ -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
Expand Down
Loading