Skip to content

Commit fb11675

Browse files
authored
[php8.2] fix weasyprint notfound from laravel deps
1 parent a88163c commit fb11675

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

php/8.2-laravel.Dockerfile

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,9 @@ RUN apt update -qq && apt install --no-install-recommends -y -qq \
3737
&& apt-get clean \
3838
&& rm -rf /var/lib/apt/lists/*
3939

40-
# Install weasyprint pip
41-
RUN pip install weasyprint --break-system-packages
40+
# Install weasyprint pip & create symlink mimic weasyprint from apt (used for laravel deps)
41+
RUN pip install weasyprint --break-system-packages \
42+
&& ln -s /usr/local/bin/weasyprint /usr/bin/weasyprint
4243

4344
# Install yarn
4445
RUN npm install -s --global yarn

0 commit comments

Comments
 (0)