31 lines
1.0 KiB
Docker
31 lines
1.0 KiB
Docker
|
# DOCKER-VERSION 1.1.0
|
||
|
|
||
|
# /!\ WARNING: the container generated through this Dockerfile is made only for development purpose; it is NOT SAFE or production ready.
|
||
|
|
||
|
FROM debian:wheezy
|
||
|
MAINTAINER Pierre-Olivier Mercier <nemunaire@nemunai.re>
|
||
|
|
||
|
# Install packages ####################################################
|
||
|
|
||
|
RUN apt-get -y update && \
|
||
|
apt-get install -y \
|
||
|
nginx-full \
|
||
|
php5-fpm \
|
||
|
php5-mcrypt \
|
||
|
&& \
|
||
|
apt-get clean && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
|
||
|
|
||
|
# Copying files #######################################################
|
||
|
|
||
|
ADD . /var/www/fic-server/front/
|
||
|
|
||
|
# Configure softwares #################################################
|
||
|
|
||
|
RUN ln -sf /var/www/fic-server/front/nginx.conf /etc/nginx/sites-enabled/default
|
||
|
RUN ln -sf /var/www/fic-server/front/php-fpm.conf /etc/php5/fpm/pool.d/www.conf
|
||
|
|
||
|
# ENVIRONNEMENT #######################################################
|
||
|
|
||
|
EXPOSE 80/tcp 443/tcp
|
||
|
CMD ["sh", "-c", "service nginx start && service php5-fpm start && /bin/bash"]
|