Sanitize Dockerfile

This commit is contained in:
Némunaire 2014-12-14 13:16:22 +01:00
commit 28b5d91b9a
3 changed files with 39 additions and 173 deletions

View file

@ -15,16 +15,21 @@ RUN apt-get -y update && \
&& \
apt-get clean && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
WORKDIR /var/www/fic-server/front/
# 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
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
# ENVIRONNEMENT #######################################################
EXPOSE 80/tcp 443/tcp
CMD ["sh", "-c", "service nginx start && service php5-fpm start && /bin/bash"]
EXPOSE 80/tcp 443/tcp
CMD service nginx start && \
service php5-fpm start && \
/bin/bash