Advertisement
Guest User

Untitled

a guest
Mar 28th, 2017
61
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.64 KB | None | 0 0
  1. FROM centos:6
  2.  
  3. RUN yum install -y which \
  4. expect \
  5. openssh-clients \
  6. glibc-common \
  7. zip \
  8. unzip \
  9. dos2unix
  10.  
  11. # Directory and local file setup
  12. RUN mkdir -vp /build/expect/{lib/tcl8.5,bin}
  13. ADD expect.sh /build/expect
  14. RUN pushd /build \
  15. && dos2unix /build/expect/expect.sh \
  16. && ldd /usr/bin/expect \
  17. | sed -nr 's/.*=> ([/a-z0-9.]+).*/\1/p' \
  18. | while read library; do cp -v "$library" ./expect/lib; done \
  19. && cp -v /usr/share/tcl8.5/init.tcl ./expect/lib/tcl8.5 \
  20. && cp -v /usr/bin/expect ./expect/bin \
  21. && zip -rv ./expect.zip ./expect \
  22. && rm -rvf ./expect
  23. VOLUME /build
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement