Skip to content

Commit bc55a9f

Browse files
author
INC-DAndrei
committed
works but it's a lonely container
1 parent 289e4c5 commit bc55a9f

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

Dockerfile

+4-2
Original file line numberDiff line numberDiff line change
@@ -45,8 +45,10 @@ cd /tmp/nginx && \
4545
--with-pcre \
4646
--with-google_perftools_module \
4747
--with-debug && \
48-
make && make install
48+
make && \
49+
make install
4950

51+
ADD ./run//bootstrap.sh /opt/bootstrap.sh
5052
EXPOSE 80 443
5153

52-
CMD ["/bin/bash", "nginx && sleep 5 && tail -f /var/log/nginx/access.log /var/log/nginx/error.log" ]
54+
CMD ["/bin/bash", "/opt/bootstrap.sh" ]

run/bootstrap.sh

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
#!/bin/bash
2+
3+
nginx && \
4+
tail -f /var/log/nginx/access.log /var/log/nginx/error.log

0 commit comments

Comments
 (0)