Skip to content

Commit 1cf5981

Browse files
author
Robert Kummer
authored
Update Dockerfile
1 parent 7f07e8e commit 1cf5981

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

Dockerfile

+8-4
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,19 @@
1-
FROM php:7.0-alpine
1+
FROM php:7.1-alpine
22

3-
MAINTAINER ipunkt Business Solutions <[email protected]>
3+
LABEL maintainer="ipunkt Business Solutions <[email protected]>"
4+
LABEL version="php7.1-v2.0"
5+
LABEL description="A supervisor configured to run with laravel artisan queue:work or artisan horizon command"
46

57
ENV PYTHON_VERSION=2.7.12-r0
68
ENV PY_PIP_VERSION=8.1.2-r0
7-
ENV SUPERVISOR_VERSION=3.3.1
9+
ENV SUPERVISOR_VERSION=3.3.3
810

911
ENV QUEUE_CONNECTION=redis
1012
ENV QUEUE_NAME=default
13+
ENV LARAVEL_HORIZON=false
1114

1215
# Install pdo if you want to use database queue
13-
RUN docker-php-ext-install pdo pdo_mysql
16+
RUN docker-php-ext-install pdo pdo_mysql pcntl posix
1417

1518
# Install supervisor
1619
RUN apk update && apk add -u python=$PYTHON_VERSION py-pip=$PY_PIP_VERSION
@@ -21,6 +24,7 @@ WORKDIR /etc/supervisor/conf.d
2124

2225
# Use local configuration
2326
COPY laravel-worker.conf.tpl /etc/supervisor/conf.d/laravel-worker.conf.tpl
27+
COPY laravel-horizon.conf.tpl /etc/supervisor/conf.d/laravel-horizon.conf.tpl
2428

2529
# Copy scripts
2630
COPY init.sh /usr/local/bin/init.sh

0 commit comments

Comments
 (0)