Skip to content
This repository was archived by the owner on Jan 7, 2026. It is now read-only.
Merged
Changes from 1 commit
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
5 changes: 5 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,9 @@ ARG COMPOSER_NO_DEV=1
# This is NOT compatible with the release target above
ARG BRANCH=master

# https://stackoverflow.com/questions/53377176/change-imagemagick-policy-on-a-dockerfile
ARG IMAGEMAGIC_CONFIG=/etc/ImageMagick-6/policy.xml
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't see why we need this?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.


# Install base dependencies, add user and group, clone the repo and install php libraries
RUN \
set -ev && \
Expand Down Expand Up @@ -57,10 +60,12 @@ RUN \
webp \
cron \
composer \
ghostscript \
unzip && \
addgroup --gid "$PGID" "$USER" && \
adduser --gecos '' --no-create-home --disabled-password --uid "$PUID" --gid "$PGID" "$USER" && \
cd /var/www/html && \
if [ -f "$IMAGEMAGIC_CONFIG" ] ; then sed -i 's/<policy domain="coder" rights="none" pattern="PDF" \/>/<policy domain="coder" rights="read|write" pattern="PDF" \/>/g' $IMAGEMAGIC_CONFIG ; else echo "did not see file $IMAGEMAGIC_CONFIG" ; fi && \
Comment thread
ildyria marked this conversation as resolved.
Outdated
if [ "$TARGET" = "release" ] ; then RELEASE_TAG="-b v$(curl -s https://raw.githubusercontent.com/LycheeOrg/Lychee/master/version.md)" ; \
elif [ "$BRANCH" != "master" ] ; then RELEASE_TAG="-b $BRANCH" ; fi && \
git clone --depth 1 $RELEASE_TAG https://github.com/LycheeOrg/Lychee.git && \
Expand Down