Add a Dockerfile for frontend test container; adapt code to simplify synchronization or Docker linkage
This commit is contained in:
parent
6c69867bcc
commit
bca09af2e0
15 changed files with 329 additions and 218 deletions
30
front/Dockerfile
Normal file
30
front/Dockerfile
Normal file
|
|
@ -0,0 +1,30 @@
|
|||
# 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"]
|
||||
Reference in a new issue