2014-04-09 18:21:22 +04:00
|
|
|
FROM busybox
|
|
|
|
RUN echo 'dockerio:x:1001:1001::/bin:/bin/false' >> /etc/passwd
|
|
|
|
RUN echo 'dockerio:x:1001:' >> /etc/group
|
|
|
|
RUN touch /exists
|
|
|
|
RUN chown dockerio.dockerio exists
|
|
|
|
ADD test_dir /test_dir
|
|
|
|
RUN [ $(ls -l / | grep test_dir | awk '{print $3":"$4}') = 'root:root' ]
|
2014-05-19 23:07:31 +04:00
|
|
|
RUN [ $(ls -l / | grep test_dir | awk '{print $1}') = 'drwxr-xr-x' ]
|
2014-04-09 18:21:22 +04:00
|
|
|
RUN [ $(ls -l /test_dir/test_file | awk '{print $3":"$4}') = 'root:root' ]
|
2014-05-20 13:39:46 -07:00
|
|
|
RUN [ $(ls -l /test_dir/test_file | awk '{print $1}') = '-rw-r--r--' ]
|
2014-04-09 18:21:22 +04:00
|
|
|
RUN [ $(ls -l /exists | awk '{print $3":"$4}') = 'dockerio:dockerio' ]
|