File tree Expand file tree Collapse file tree 3 files changed +38
-4
lines changed Expand file tree Collapse file tree 3 files changed +38
-4
lines changed Original file line number Diff line number Diff line change 1
- FROM houseofagile/docker-nginx-php-fpm:php7
1
+ FROM houseofagile/docker-nginx-php-fpm:php5
2
2
3
3
MAINTAINER Meillaud Jean-Christophe (
[email protected] )
4
4
@@ -17,12 +17,14 @@ ADD ./config/ssh-keys /root/ssh-keys
17
17
18
18
ADD ./config/sm-config /root/.symfony-manager/sm-config
19
19
ADD .bowerrc /root/.bowerrc
20
+ ADD ./default-symfony-nginx.conf /root/docker-config/default-symfony-nginx.conf
20
21
21
22
RUN chown www-data -R /usr/share/nginx/ && \
22
23
mkdir -p /root/docker-config && \
23
24
rm /etc/nginx/sites-enabled/default && \
24
- mkdir -p /etc/my_init.d
25
- ADD ./default-symfony-nginx.conf /root/docker-config/default-symfony-nginx.conf
25
+ mkdir -p /etc/my_init.d && \
26
+ sed -i 's#%%php_fpm_sock_file%%#/var/run/php/php5.6-fpm.sock#g' /root/docker-config/default-symfony-nginx.conf
27
+
26
28
27
29
ADD setup-projects.sh /etc/my_init.d/10_setup-projects.sh
28
30
RUN chmod +x /etc/my_init.d/10_setup-projects.sh
Original file line number Diff line number Diff line change
1
+ FROM houseofagile/docker-nginx-php-fpm:php7
2
+
3
+ MAINTAINER Meillaud Jean-Christophe (
[email protected] )
4
+
5
+ #Node install
6
+ RUN apt-get update \
7
+ && apt-get install -y nodejs npm \
8
+ && npm install less -g && npm install -g bower \
9
+ && curl -sS https://getcomposer.org/installer | php -- --version=1.3.2 --install-dir=/usr/bin/ \
10
+ && mv /usr/bin/composer.phar /usr/bin/composer \
11
+ && mkdir /root/projects && mkdir /root/ssh-keys \
12
+ && echo "StrictHostKeyChecking no" >> /etc/ssh/ssh_config \
13
+ && apt-get clean && rm -rf /tmp/* /var/tmp/*
14
+
15
+ ADD ./config/projects /root/projects
16
+ ADD ./config/ssh-keys /root/ssh-keys
17
+
18
+ ADD ./config/sm-config /root/.symfony-manager/sm-config
19
+ ADD .bowerrc /root/.bowerrc
20
+ ADD ./default-symfony-nginx.conf /root/docker-config/default-symfony-nginx.conf
21
+
22
+ RUN chown www-data -R /usr/share/nginx/ && \
23
+ mkdir -p /root/docker-config && \
24
+ rm /etc/nginx/sites-enabled/default && \
25
+ mkdir -p /etc/my_init.d && \
26
+ sed -i 's#%%php_fpm_sock_file%%#/run/php/php7.0-fpm.sock#g' /root/docker-config/default-symfony-nginx.conf
27
+
28
+ ADD setup-projects.sh /etc/my_init.d/10_setup-projects.sh
29
+ RUN chmod +x /etc/my_init.d/10_setup-projects.sh
30
+
31
+ EXPOSE 80
32
+ CMD ["/sbin/my_init"]
Original file line number Diff line number Diff line change @@ -36,7 +36,7 @@ server {
36
36
fastcgi_param PATH_INFO $fastcgi_path_info;
37
37
fastcgi_param SERVER_NAME $host;
38
38
if ($uri !~ "^/uploads/") {
39
- fastcgi_pass unix:/var/run/php/php7.0-fpm.sock ;
39
+ fastcgi_pass unix:%%php_fpm_sock_file%% ;
40
40
}
41
41
}
42
42
You can’t perform that action at this time.
0 commit comments