-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
45 lines (32 loc) · 1.31 KB
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
FROM debian:wheezy
MAINTAINER Philipp Homann <docker.pub@wwwpage.de>
# install lighttpd and PHP
RUN apt-get update && apt-get -y install \
lighttpd \
php5-cgi \
vim \
less \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/*
# configure PHP with lighttpd
RUN sed -i "s/;cgi.fix_pathinfo=1/cgi.fix_pathinfo=0/" /etc/php5/cgi/php.ini
COPY lighttpd/lighttpd.conf /etc/lighttpd/lighttpd.conf
# start lighttpd
CMD ["lighttpd", "-D", "-f", "/etc/lighttpd/lighttpd.conf"]
EXPOSE 80
#COPY php.conf /etc/lighttpd/conf-available/40-php.conf
#RUN lighttpd-enable-mod fastcgi php
#RUN adduser www-data -G www-data -H -s /bin/false -D
# Ensure UTF-8
# RUN locale-gen en_US.UTF-8
# ENV LANG en_US.UTF-8
# ENV LC_ALL en_US.UTF-8
# RUN apt-get update
# RUN DEBIAN_FRONTEND="noninteractive" apt-get install -y vim curl wget build-essential python-software-properties
# RUN add-apt-repository -y ppa:ondrej/php5
# RUN add-apt-repository -y ppa:nginx/stable
# RUN apt-get update
# RUN DEBIAN_FRONTEND="noninteractive" apt-get install -y --force-yes php5-cli php5-fpm php5-mysql php5-pgsql php5-sqlite php5-curl\
# php5-gd php5-mcrypt php5-intl php5-imap php5-tidy
# RUN sed -i "s/;date.timezone =.*/date.timezone = UTC/" /etc/php5/fpm/php.ini
# RUN sed -i "s/;date.timezone =.*/date.timezone = UTC/" /etc/php5/cli/php.ini