sandbox/Dockerfile
2016-04-08 13:43:57 +02:00

11 lines
310 B
Docker

FROM ubuntu:16.04
RUN echo "#!/bin/sh\nexit 101" > /usr/sbin/policy-rc.d
ADD ./buildsources.list /etc/apt/sources.list
ADD ./run.sh /tmp/run.sh
RUN bash /tmp/run.sh && rm /tmp/run.sh
ADD ./my_init /usr/sbin/my_init
RUN chmod +x /usr/sbin/my_init
CMD /usr/sbin/my_init
ADD ./sources.list /etc/apt/sources.list