|
@@ -0,0 +1,20 @@
|
|
|
+FROM debian:stretch
|
|
|
+
|
|
|
+ENV container docker
|
|
|
+ENV LC_ALL C
|
|
|
+ENV DEBIAN_FRONTEND noninteractive
|
|
|
+
|
|
|
+COPY container.target /etc/systemd/system/container.target
|
|
|
+
|
|
|
+RUN apt update && \
|
|
|
+ apt install -y systemd python && \
|
|
|
+ ln -sf /etc/systemd/system/container.target /etc/systemd/system/default.target && \
|
|
|
+ ln -sf /lib/systemd/systemd /sbin/init && \
|
|
|
+ apt-get clean && \
|
|
|
+ && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
|
|
|
+
|
|
|
+ENTRYPOINT ["/sbin/init"]
|
|
|
+
|
|
|
+CMD ["--log-level=info"]
|
|
|
+
|
|
|
+STOPSIGNAL SIGRTMIN+3
|