Dockerfile 452 B

1234567891011121314151617181920212223242526
  1. # Dockerfile for creating the management network container
  2. FROM centos:8
  3. # RPM REPOs
  4. RUN dnf install -y \
  5. epel-release \
  6. && dnf clean all \
  7. && rm -rf /var/cache/dnf
  8. RUN dnf install dhcp-server -y
  9. RUN yum install -y \
  10. ansible \
  11. cronie \
  12. net-tools \
  13. && yum clean all \
  14. && rm -rf /var/cache/yum
  15. RUN mkdir /root/omnia
  16. #Copy Configuration files
  17. COPY dhcpd.conf /etc/dhcp/dhcpd.conf
  18. RUN systemctl enable dhcpd
  19. CMD ["sbin/init"]