2014-11-21 14:55:38 +00:00
|
|
|
# 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/*
|
|
|
|
|
2014-12-14 12:16:22 +00:00
|
|
|
WORKDIR /var/www/fic-server/front/
|
|
|
|
|
2014-11-21 14:55:38 +00:00
|
|
|
# Copying files #######################################################
|
|
|
|
|
2015-01-15 11:13:41 +00:00
|
|
|
COPY . /var/www/fic-server/front/
|
2014-11-21 14:55:38 +00:00
|
|
|
|
|
|
|
# Configure softwares #################################################
|
|
|
|
|
2014-12-14 12:16:22 +00:00
|
|
|
RUN ln -sf /var/www/fic-server/front/nginx.conf /etc/nginx/sites-enabled/default && \
|
|
|
|
ln -sf /var/www/fic-server/front/php-fpm.conf /etc/php5/fpm/pool.d/www.conf
|
2014-11-21 14:55:38 +00:00
|
|
|
|
|
|
|
# ENVIRONNEMENT #######################################################
|
|
|
|
|
2014-12-14 12:16:22 +00:00
|
|
|
EXPOSE 80/tcp 443/tcp
|
|
|
|
|
|
|
|
CMD service nginx start && \
|
|
|
|
service php5-fpm start && \
|
|
|
|
/bin/bash
|