mirror of
https://github.com/penpot/penpot.git
synced 2025-01-09 00:10:11 -05:00
🐳 🐛 Add Imagemagick to production image
This commit is contained in:
parent
8a80aeef1c
commit
d58f500dee
1 changed files with 22 additions and 1 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in a new issue