-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
30 lines (23 loc) · 932 Bytes
/
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
# Use phusion/baseimage as base image. To make your builds
# reproducible, make sure you lock down to a specific version, not
# to `latest`! See
# https://github.com/phusion/baseimage-docker/blob/master/Changelog.md
# for a list of version numbers.
FROM phusion/baseimage:0.9.18
# Use baseimage-docker's init system.
CMD ["/sbin/my_init"]
# install pacakages
RUN apt-get update && apt-get install -y nginx php5-fpm php5-mysql php5-curl php5-cli
# nginx runit script
ADD docker/etc/nginx/nginx.conf /etc/nginx/nginx.conf
ADD docker/etc/nginx/sites-available/default /etc/nginx/sites-available/default
RUN mkdir /etc/service/nginx
ADD docker/service/nginx.sh /etc/service/nginx/run
# php5-fpm runit script
RUN mkdir /etc/service/php5-fpm
ADD docker/service/php5-fpm.sh /etc/service/php5-fpm/run
# volumes
VOLUME ["/var/www"]
# Clean up APT when done.
RUN apt-get clean && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
EXPOSE 80