Skip to content

Instantly share code, notes, and snippets.

@keshavab
Created June 28, 2016 13:44
Show Gist options
  • Save keshavab/30f347a024ef5952c61e75d894fc2dd4 to your computer and use it in GitHub Desktop.
Save keshavab/30f347a024ef5952c61e75d894fc2dd4 to your computer and use it in GitHub Desktop.
systemd dockerfile
FROM keshavab/systemd
RUN yum -y install httpd; yum clean all
RUN systemctl enable httpd.service
# RUN systemctl restart httpd.service
EXPOSE 80
ENTRYPOINT ["/usr/sbin/init"]
CMD systemctl restart httpd.service
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment