Created
July 10, 2021 15:03
-
-
Save mohan43u/2ee5704d65833fd5bd98564a75c8f81a 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 | |
RUN echo -e '#!/bin/sh\n\ | |
apk update\n\ | |
apk upgrade\n\ | |
apk add python3\n\ | |
mkdir -p /var/www/helloworld\n\ | |
echo "<html><head><title>Hello World</title><body><h3>Hello World</h3></body></html>" >/var/www/helloworld/index.html' >/tmp/script &&\ | |
chmod 755 /tmp/script &&\ | |
/tmp/script | |
EXPOSE 80 | |
ENTRYPOINT ["/usr/bin/python3", "-m", "http.server", "--directory", "/var/www/helloworld", "80"] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment