Dockerfile 498 B

1234567891011121314151617181920
  1. FROM debian:stretch
  2. ENV container docker
  3. ENV LC_ALL C
  4. ENV DEBIAN_FRONTEND noninteractive
  5. COPY container.target /etc/systemd/system/container.target
  6. RUN apt update && \
  7. apt install -y systemd python && \
  8. ln -sf /etc/systemd/system/container.target /etc/systemd/system/default.target && \
  9. ln -sf /lib/systemd/systemd /sbin/init && \
  10. apt-get clean && \
  11. && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
  12. ENTRYPOINT ["/sbin/init"]
  13. CMD ["--log-level=info"]
  14. STOPSIGNAL SIGRTMIN+3