14 lines
382 B
Docker
14 lines
382 B
Docker
FROM ubuntu:16.04
|
|
|
|
ADD ./sources.list /etc/apt/sources.list
|
|
|
|
# normally bad form for dockerfiles, but is sandbox
|
|
RUN DEBIAN_FRONTEND=noninteractive apt update && apt -y upgrade
|
|
|
|
RUN echo "#!/bin/sh\nexit 101" > /usr/sbin/policy-rc.d
|
|
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
|