Skip to content

Commit fbab9ff

Browse files
author
Robert Kummer
authored
Dockerfile created
1 parent 46d808d commit fbab9ff

File tree

1 file changed

+28
-0
lines changed

1 file changed

+28
-0
lines changed

Dockerfile

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -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

Comments
 (0)