-
Notifications
You must be signed in to change notification settings - Fork 1
/
Dockerfile.dev
executable file
·27 lines (20 loc) · 1.04 KB
/
Dockerfile.dev
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
FROM trmccormick/hydra_docker_build:ruby2.7
ENV RAILS_ENV development
ENV RACK_ENV development
WORKDIR /home/hydra
ADD ./hydra /home/hydra
RUN apt-get update && apt-get -y install imagemagick ghostscript
# Use JEMALLOC instead
# JEMalloc is a faster garbage collection for Ruby.
# -------------------------------------------------------------------------------------------------
RUN apt-get install -y libjemalloc2 libjemalloc-dev
ENV LD_PRELOAD=/usr/lib/x86_64-linux-gnu/libjemalloc.so
# Uncomment if developing Bulkrax within this application
# COPY ./hydra/vendor/engines/bulkrax /home/hydra/vendor/engines/bulkrax
# increase ImageMagick's memory limit
RUN sed -i -E 's/name="disk" value=".+"/name="disk" value="4GiB"/g' /etc/ImageMagick-6/policy.xml
# Modifiy ImageMagick's security policy to allow reading and writing PDFs
RUN sed -i 's/policy domain="coder" rights="none" pattern="PDF"/policy domain="coder" rights="read|write" pattern="PDF"/' /etc/ImageMagick-6/policy.xml
RUN \
# gem update --system --quiet && \
bundle install --jobs=4 --retry=3