-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile_daemon
38 lines (28 loc) · 757 Bytes
/
Dockerfile_daemon
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
FROM php:8.1-alpine
RUN apk --update add wget \
curl \
git \
build-base \
libmcrypt-dev \
libxml2-dev \
pcre-dev \
zlib-dev \
autoconf \
cyrus-sasl-dev \
libgsasl-dev \
oniguruma-dev \
libressl \
libressl-dev \
supervisor
RUN pecl channel-update pecl.php.net; \
docker-php-ext-install mbstring pdo tokenizer xml pcntl
RUN apk --update add postgresql-dev \
&& docker-php-ext-install pdo_pgsql
COPY docker/queue-consumer/supervisord.conf /etc/supervisord.conf
COPY docker/queue-consumer/supervisord.d/ /etc/supervisor/conf.d
ENTRYPOINT ["/usr/bin/supervisord", "-n", "-c", "/etc/supervisord.conf"]
# Clean up
RUN rm /var/cache/apk/* \
&& mkdir -p /var/www
COPY . /var/www
WORKDIR /etc/supervisor/conf.d/