-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathDockerfile
More file actions
22 lines (19 loc) · 803 Bytes
/
Dockerfile
File metadata and controls
22 lines (19 loc) · 803 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
FROM docker.xlands-inc.com/baoyu/debian
MAINTAINER djluo <dj.luo@baoyugame.com>
RUN export http_proxy="http://172.17.42.1:8080/" \
&& export DEBIAN_FRONTEND=noninteractive \
&& apt-get update \
&& apt-get install -y php5 php5-fpm php5-cli php5-mysql php5-mcrypt php5-gd php5-curl supervisor \
&& apt-get clean \
&& unset http_proxy DEBIAN_FRONTEND \
&& rm -rf usr/share/locale \
&& rm -rf usr/share/man \
&& rm -rf usr/share/doc \
&& rm -rf usr/share/info \
&& find var/lib/apt -type f -exec rm -f {} \;
COPY ./entrypoint.pl /
COPY ./conf/ /conf
COPY ./example/ /example
ENV PHP_INI_SCAN_DIR /etc/php5/mods-available
ENTRYPOINT ["/entrypoint.pl"]
CMD ["/usr/bin/supervisord", "-n", "-c", "/etc/php5/fpm/supervisord.conf"]