Update Dockerfile (best-practices, misc dir rights, ...)
This commit is contained in:
parent
5196487b0c
commit
cf4f70e7a5
16
Dockerfile
16
Dockerfile
@ -7,8 +7,17 @@ MAINTAINER Pierre-Olivier Mercier <nemunaire@nemunai.re>
|
||||
|
||||
# Install packages ####################################################
|
||||
|
||||
RUN apt-get -y update
|
||||
RUN apt-get install -y nginx-light php5-fpm mysql-server php5-mysql php5-mcrypt pwgen openssl
|
||||
RUN apt-get -y update && \
|
||||
apt-get install -y \
|
||||
nginx-light \
|
||||
php5-fpm \
|
||||
mysql-server \
|
||||
php5-mysql \
|
||||
php5-mcrypt \
|
||||
pwgen \
|
||||
openssl \
|
||||
&& \
|
||||
apt-get clean && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
|
||||
|
||||
# Copying files #######################################################
|
||||
|
||||
@ -40,6 +49,5 @@ RUN chmod 777 /var/www/fic-server/onyx/cache/ /var/www/fic-server/onyx/cache/tem
|
||||
|
||||
# ENVIRONNEMENT #######################################################
|
||||
|
||||
RUN apt-get clean && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
|
||||
EXPOSE 80/tcp 443/tcp
|
||||
CMD ["sh", "-c", "cd /var/www/fic-server/misc; if ! [ -f server.crt ]; then bash ./CA.sh -newserver; fi; service nginx start && service php5-fpm start && service mysql start && /bin/bash"]
|
||||
CMD ["sh", "-c", "chown -R www-data:www-data /var/www/fic-server/misc /var/www/fic-server/submission; cd /var/www/fic-server/misc; if ! [ -f server.crt ]; then bash ./CA.sh -newserver; fi; service nginx start && service php5-fpm start && service mysql start && /bin/bash"]
|
||||
|
Loading…
Reference in New Issue
Block a user