Dockerfile 597 B

12345678910111213141516171819202122
  1. FROM debian:stretch
  2. ENV container docker
  3. ENV DEBIAN_FRONTEND noninteractive
  4. COPY container.target /etc/systemd/system/container.target
  5. RUN apt update && \
  6. apt install -y systemd python locales && \
  7. ln -sf /etc/systemd/system/container.target /etc/systemd/system/default.target && \
  8. ln -sf /lib/systemd/systemd /sbin/init && \
  9. apt-get clean && \
  10. rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* && \
  11. localedef -i ru_RU -c -f UTF-8 -A /usr/share/locale/locale.alias ru_RU.UTF-8
  12. ENTRYPOINT ["/sbin/init"]
  13. ENV LANG ru_RU.utf8
  14. CMD ["--log-level=info"]
  15. STOPSIGNAL SIGRTMIN+3