We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 46d808d commit fbab9ffCopy full SHA for fbab9ff
Dockerfile
@@ -0,0 +1,28 @@
1
+FROM php:7.0-alpine
2
+
3
+MAINTAINER ipunkt Business Solutions <info@ipunkt.biz>
4
5
+ENV PYTHON_VERSION=2.7.12-r0
6
+ENV PY_PIP_VERSION=8.1.2-r0
7
+ENV SUPERVISOR_VERSION=3.3.0
8
9
+ENV CONNECTION=redis
10
+ENV QUEUE=default
11
12
+# Install supervisor
13
+RUN apk update && apk add -u python=$PYTHON_VERSION py-pip=$PY_PIP_VERSION
14
+RUN pip install supervisor==$SUPERVISOR_VERSION
15
16
+# Define working directory
17
+WORKDIR /etc/supervisor/conf.d
18
19
+# Use local configuration
20
+COPY laravel-worker.conf.tpl /etc/supervisor/conf.d/laravel-worker.conf.tpl
21
22
+# Copy scripts
23
+COPY init.sh /usr/local/bin/init.sh
24
25
+VOLUME /var/www/app
26
27
+# Run supervisor
28
+ENTRYPOINT ["/bin/sh", "/usr/local/bin/init.sh"]
0 commit comments