sandbox/Dockerfile

20 lines
359 B
Docker
Raw Normal View History

2019-08-03 23:22:25 +00:00
FROM phusion/baseimage:0.11
CMD ["/sbin/my_init"]
2016-04-08 11:43:57 +00:00
2016-04-17 23:18:32 +00:00
ADD ./sources.list /etc/apt/sources.list
2019-08-03 23:22:25 +00:00
# setup
2016-04-08 11:43:57 +00:00
ADD ./run.sh /tmp/run.sh
RUN bash /tmp/run.sh && rm /tmp/run.sh
2019-08-03 23:22:25 +00:00
# enable ssh
RUN rm -f /etc/service/sshd/down
#cleanup
2019-08-05 02:02:42 +00:00
RUN apt-get clean && \
rm -rf \
/var/lib/apt/lists/* \
/tmp/* \
/var/tmp/* \
/etc/ssh/ssh_host_*_key