Skip to content

Commit c363b9a

Browse files
committed
Files added to container moved to one directory
This is to save some filesystem layers in the built image.
1 parent cb17bcf commit c363b9a

File tree

5 files changed

+8
-10
lines changed

5 files changed

+8
-10
lines changed

Dockerfile

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,7 @@ RUN \
1111
easy_install supervisor && \
1212
mkdir -p /etc/supervisord.d /var/log/supervisor
1313

14-
15-
# Bootstrap
16-
RUN mkdir -p /config/init /config/data /config/temp
17-
ADD config/ /config/
18-
19-
ADD supervisord.conf /etc/supervisord.conf
14+
# Add supervisord conf, bootstrap.sh files
15+
ADD container-files /
2016

2117
CMD ["/config/bootstrap.sh"]

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ This container is configured to run your service(s) both in interactive and non-
4949

5050
## Author
5151

52-
Author: ryzy (<[email protected]>)
53-
Author: pozgo (<[email protected]>)
52+
Author: Marcin Ryzycki (<[email protected]>)
53+
Author: Przemyslaw Ozgo (<[email protected]>)
5454

5555
This work is also inspired by [maxexcloo](https://github.com/maxexcloo)'s work on his [docker images](https://github.com/maxexcloo/Docker). Thanks!

config/bootstrap.sh renamed to container-files/config/bootstrap.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ set -e
66
# as container might start with /data mounted from another data-container).
77
mkdir -p /data/run /data/logs
88

9-
if [ "$(ls -A /config/init)" ]; then
9+
if [ "$(ls /config/init/)" ]; then
1010
for init in /config/init/*.sh; do
1111
. $init
1212
done
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
*
2+
!.gitignore

supervisord.conf renamed to container-files/etc/supervisord.conf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,4 @@ logfile = NONE
66
loglevel = debug
77

88
[include]
9-
files = /etc/supervisord.d/*.conf
9+
files = /etc/supervisor.d/*.conf

0 commit comments

Comments
 (0)