Skip to content

Commit

Permalink
wkhtmltopdf support added
Browse files Browse the repository at this point in the history
  • Loading branch information
yahyahindioglu committed Aug 4, 2022
1 parent ad43436 commit 4c1215c
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions .docker/php/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ RUN apt-get update && apt-get install -y \
libonig-dev \
libxslt1-dev \
acl \
wkhtmltopdf \
&& echo 'alias sf="php bin/console"' >> ~/.bashrc

COPY --from=node /usr/local/lib/node_modules /usr/local/lib/node_modules
Expand All @@ -37,6 +38,11 @@ RUN docker-php-ext-install \

WORKDIR /var/www/symfony_docker

#wkhtmltopdf setup
RUN ln -s /usr/bin/wkhtmltopdf /usr/local/bin/wkhtmltopdf;
RUN chmod +x /usr/local/bin/wkhtmltopdf;
#ENV XDG_RUNTIME_DIR=/var/www/symfony_docker/tmp enable if you need to call manually

RUN curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer

RUN curl -sS https://get.symfony.com/cli/installer | bash
Expand Down

0 comments on commit 4c1215c

Please sign in to comment.