Skip to content

Instantly share code, notes, and snippets.

@halfer
Created January 18, 2019 11:58
Show Gist options
  • Save halfer/d60d858fd4d2d1096335a7aa90ce6c8a to your computer and use it in GitHub Desktop.
Save halfer/d60d858fd4d2d1096335a7aa90ce6c8a to your computer and use it in GitHub Desktop.
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