Dockerfile 456 B

12345678910111213141516171819
  1. # Dockerfile for creating the management network container
  2. FROM alpine:latest
  3. #Installing packages
  4. RUN apk add dhcp
  5. RUN apk add ansible
  6. RUN apk add openrc
  7. #Creation of directories and files
  8. RUN mkdir /root/omnia
  9. RUN mkdir /etc/periodic/5min
  10. RUN touch /var/lib/dhcp/dhcpd.leases
  11. #Copy Configuration files
  12. COPY dhcpd.conf /etc/dhcp/dhcpd.conf
  13. COPY inventory_creation.yml /root/
  14. COPY mngmnt_container_configure.yml /root/
  15. COPY cron_inv /etc/periodic/5min