uopspop

Untitled

Mar 30th, 2020
78
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. FROM alpine:latest
  2. ENV myworkdir /var/www/localhost/htdocs/
  3. ARG whoami=Sam
  4. WORKDIR ${myworkdir}
  5. RUN apk --update add apache2
  6. RUN rm -rf /var/cache/apk/*
  7. RUN echo "<h3>I am ${whoami}. I am taking this great Docker Course. Round 01<h3>" >> index.html
  8. RUN echo "<h3>I am ${whoami}. I am taking this great Docker Course. Round 02<h3>" >> index.html
  9. RUN echo "<h3>I am ${whoami}. I am taking this great Docker Course. Round 03<h3>" >> index.html
  10. ENTRYPOINT ["httpd", "-D", "FOREGROUND"]
RAW Paste Data