mirror of
https://github.com/invoiceninja/dockerfiles.git
synced 2026-02-04 05:07:09 +01:00
add puppeteer and add SYS_ADMIN cap
This commit is contained in:
@@ -67,6 +67,24 @@ RUN set -eux; \
|
|||||||
COPY ./config/php/php.ini /usr/local/etc/php/php.ini
|
COPY ./config/php/php.ini /usr/local/etc/php/php.ini
|
||||||
COPY ./config/php/php-cli.ini /usr/local/etc/php/php-cli.ini
|
COPY ./config/php/php-cli.ini /usr/local/etc/php/php-cli.ini
|
||||||
|
|
||||||
|
RUN apk add --no-cache \
|
||||||
|
chromium \
|
||||||
|
nss \
|
||||||
|
freetype \
|
||||||
|
freetype-dev \
|
||||||
|
harfbuzz \
|
||||||
|
ca-certificates \
|
||||||
|
ttf-freefont \
|
||||||
|
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
|
## Separate user
|
||||||
ENV INVOICENINJA_USER=invoiceninja
|
ENV INVOICENINJA_USER=invoiceninja
|
||||||
|
|
||||||
|
|||||||
@@ -30,6 +30,8 @@ services:
|
|||||||
app:
|
app:
|
||||||
image: invoiceninja/invoiceninja:5
|
image: invoiceninja/invoiceninja:5
|
||||||
restart: always
|
restart: always
|
||||||
|
cap_add:
|
||||||
|
- SYS_ADMIN
|
||||||
environment:
|
environment:
|
||||||
- APP_URL=https://localhost
|
- APP_URL=https://localhost
|
||||||
- APP_KEY=<INSERT THE GENERATED APPLICATION KEY HERE>
|
- APP_KEY=<INSERT THE GENERATED APPLICATION KEY HERE>
|
||||||
|
|||||||
Reference in New Issue
Block a user