Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- FROM alpine:latest
- ENV myworkdir /var/www/localhost/htdocs/
- ARG whoami=Sam
- WORKDIR ${myworkdir}
- RUN apk --update add apache2
- RUN rm -rf /var/cache/apk/*
- RUN echo "<h3>I am ${whoami}. I am taking this great Docker Course. Round 01<h3>" >> index.html
- RUN echo "<h3>I am ${whoami}. I am taking this great Docker Course. Round 02<h3>" >> index.html
- RUN echo "<h3>I am ${whoami}. I am taking this great Docker Course. Round 03<h3>" >> index.html
- COPY ./content.txt ./
- RUN ls -l ./
- RUN cat ./content.txt >> index.html
- ENTRYPOINT ["httpd", "-D", "FOREGROUND"]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement