2016-05-09 04:02:15 +02:00
|
|
|
FROM php:latest
|
|
|
|
|
2018-03-16 10:34:47 +01:00
|
|
|
LABEL maintainer="Mahmoud Zalt <mahmoud@zalt.me>"
|
2016-05-09 04:02:15 +02:00
|
|
|
|
|
|
|
RUN apt-get update && apt-get install -y curl
|
|
|
|
|
|
|
|
RUN curl -sL https://github.com/ptrofimov/beanstalk_console/archive/master.tar.gz | tar xvz -C /tmp
|
|
|
|
RUN mv /tmp/beanstalk_console-master /source
|
|
|
|
|
2016-07-29 12:19:44 +02:00
|
|
|
RUN apt-get remove --purge -y curl && \
|
|
|
|
apt-get autoclean && \
|
|
|
|
apt-get clean && \
|
2016-07-25 06:31:31 +02:00
|
|
|
rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
|
2016-05-09 04:02:15 +02:00
|
|
|
|
|
|
|
EXPOSE 2080
|
|
|
|
|
2017-05-01 12:36:31 +02:00
|
|
|
CMD bash -c 'BEANSTALK_SERVERS=$BEANSTALKD_PORT_11300_TCP_ADDR:11300 php -S 0.0.0.0:2080 -t /source/public'
|