0
Fork 0
mirror of https://github.com/penpot/penpot.git synced 2025-01-09 08:20:45 -05:00

🐳 🐛 Add Imagemagick to production image

This commit is contained in:
mathieu.brunot 2019-02-19 02:41:18 +01:00
parent 8a80aeef1c
commit d58f500dee
No known key found for this signature in database
GPG key ID: 81584BEAF692D7E0

View file

@ -40,7 +40,28 @@ ENV UXBOX_HTTP_SERVER_DEBUG=false \
RUN set -ex; \
chmod 755 /entrypoint.sh; \
mkdir -p /srv/uxbox/resources/public/media; \
mkdir -p /srv/uxbox/resources/public/static;
mkdir -p /srv/uxbox/resources/public/static; \
apt-get update -yq && \
apt-get install -yq \
imagemagick \
webp \
; \
apt-get update -yq; \
apt-get install -yq \
libbz2-dev liblzma-dev zlib1g-dev libfftw3-dev \
libfreetype6-dev libfontconfig1-dev libxt-dev \
libexif-dev libjpeg-dev libpng-dev libtiff-dev \
libwmf-dev libpango1.0-dev librsvg2-bin librsvg2-dev \
libxml2-dev libwebp-dev webp \
; \
git clone https://github.com/ImageMagick/ImageMagick.git imagemagick && \
cd imagemagick && \
git checkout -f 7.0.8-27 && \
./configure --prefix=/opt/img && \
make -j2 && \
make install && \
cd .. && \
rm -rf ./imagemagick
VOLUME /srv/uxbox/resources/public