Created
January 18, 2019 11:58
-
-
Save halfer/d60d858fd4d2d1096335a7aa90ce6c8a to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM alpine:3.8 | |
# Do a system update | |
RUN apk update | |
# Add Apache | |
RUN apk add --update apache2 | |
# Create working folder | |
RUN mkdir /run/apache2 | |
# Install a page | |
COPY index.html /var/www/localhost/htdocs/index.html | |
# Start! | |
CMD ["/usr/sbin/httpd", "-DFOREGROUND"] | |
# Run using `docker run -p 10000:80 my-web-server` | |
---------- | |
<html> | |
Hello everyone! :) | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment