Cleaner entrypoint
This commit is contained in:
parent
1001cdf87a
commit
64219a693d
3 changed files with 26 additions and 14 deletions
|
|
@ -1,5 +1,3 @@
|
|||
# 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
|
||||
|
|
@ -31,7 +29,7 @@ RUN useradd -d /var/www/fic-server -M -N -g www-data synchro
|
|||
|
||||
WORKDIR /var/www/fic-server
|
||||
|
||||
ADD . /var/www/fic-server/
|
||||
COPY . /var/www/fic-server/
|
||||
|
||||
# Configure softwares #################################################
|
||||
|
||||
|
|
@ -44,7 +42,6 @@ RUN dpkg -i /var/www/fic-server/libmcrypt-perl*.deb || \
|
|||
# Configure site ######################################################
|
||||
|
||||
RUN ln -sf /var/www/fic-server/onyx/config/sample.root.xml /var/www/fic-server/onyx/config/root.xml && \
|
||||
sed -i "s/1386827772/`date -d 'now + 4 hours' +%s`/" /var/www/fic-server/onyx/config/root.xml && \
|
||||
sed -i "s/challenge-public//" /var/www/fic-server/onyx/config/root.xml && \
|
||||
chmod 777 /var/www/fic-server/onyx/cache/ /var/www/fic-server/onyx/cache/templates/cache/ /var/www/fic-server/onyx/cache/templates/compile/
|
||||
|
||||
|
|
@ -57,5 +54,6 @@ ENTRYPOINT ["/var/www/fic-server/entrypoint.sh"]
|
|||
|
||||
CMD service nginx start && \
|
||||
service php5-fpm start && \
|
||||
./nginx_gen_team.sh > ./shared/nginx-teams.conf && \
|
||||
(./launch_local.sh &); \
|
||||
/bin/bash
|
||||
|
|
|
|||
Reference in a new issue