mirror of
https://github.com/invoiceninja/dockerfiles.git
synced 2026-01-09 07:57:26 +01:00
Merge pull request #239 from beganovich/v5-transition-to-snappdf
(v5) Support for snappdf
This commit is contained in:
@@ -81,13 +81,6 @@ RUN apk add --no-cache \
|
||||
nodejs \
|
||||
yarn
|
||||
|
||||
# Tell Puppeteer to skip installing Chrome. We'll be using the installed package.
|
||||
ENV PUPPETEER_SKIP_CHROMIUM_DOWNLOAD=true \
|
||||
PUPPETEER_EXECUTABLE_PATH=/usr/bin/chromium-browser
|
||||
|
||||
# Puppeteer v1.19.0 works with Chromium 77.
|
||||
RUN yarn add puppeteer@1.19.0
|
||||
|
||||
## Separate user
|
||||
ENV INVOICENINJA_USER=invoiceninja
|
||||
|
||||
@@ -118,6 +111,7 @@ RUN /usr/local/bin/composer install --no-dev --no-suggest --no-progress --quiet
|
||||
# Override the environment settings from projects .env file
|
||||
ENV APP_ENV production
|
||||
ENV LOG errorlog
|
||||
ENV SNAPPDF_EXECUTABLE_PATH /usr/bin/chromium-browser
|
||||
|
||||
ENTRYPOINT ["docker-entrypoint"]
|
||||
CMD ["php-fpm"]
|
||||
|
||||
@@ -41,6 +41,7 @@ services:
|
||||
- DB_PASSWORD1=ninja
|
||||
- DB_DATABASE1=ninja
|
||||
- PHANTOMJS_PDF_GENERATION=false
|
||||
- SNAPPDF_EXECUTABLE_PATH="/usr/bin/chromium-browser"
|
||||
volumes:
|
||||
# Configure your mounted directories, make sure the folder 'public' and 'storage'
|
||||
# exist, before mounting them
|
||||
|
||||
Reference in New Issue
Block a user