-
-
Notifications
You must be signed in to change notification settings - Fork 20
/
Dockerfile
69 lines (52 loc) · 1.39 KB
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
FROM dunglas/frankenphp:1.2.5-php8.3.13-bookworm
LABEL authors="Cybrarist"
ENV SERVER_NAME=":80"
ENV FRANKENPHP_CONFIG="worker /app/public/index.php"
ENV FRANKEN_HOST="localhost"
RUN apt update && apt install -y supervisor \
libbz2-dev \
libzip-dev \
libmcrypt-dev \
libicu-dev \
gnupg \
ca-certificates \
libx11-xcb1 \
libxcomposite1 \
libxdamage1 \
libxrandr2 \
libatk1.0-0 \
libnspr4 \
libnss3 \
libgtk-3-0 \
libgbm-dev \
libpango-1.0-0 \
libatspi2.0-0 \
libxshmfence1 \
libxtst6 \
chromium \
chromium-driver \
xvfb \
xdg-utils \
&& apt-get clean
# Set environment variables for Chromium
ENV CHROME_BIN="/usr/bin/chromium-browser"
ENV CHROME_OPTS=" --disable-dev-shm-usage --headless --disable-gpu --no-sandbox --enable-features=ConversionMeasurement --remote-debugging-port=9222 "
RUN docker-php-ext-install pcntl \
opcache \
pdo_mysql \
pdo \
bz2 \
intl \
iconv \
bcmath \
calendar \
pdo_mysql \
zip
COPY ./docker/base_supervisord.conf /etc/supervisor/conf.d/supervisord.conf
COPY . /app
WORKDIR /app
EXPOSE 80 443 2019 8080
RUN chmod +x /app/*
RUN mkdir -p /config/chromium
ENV DISPLAY=:99
ENTRYPOINT ["docker/entrypoint.sh"]