Created
October 12, 2016 03:08
-
-
Save tag1216/078b2191d5617a4dd7bf38860ab15726 to your computer and use it in GitHub Desktop.
DockerでPythonサンプルWebサーバー
This file contains hidden or 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
ROM ubuntu:latest | |
RUN apt-get update && apt-get -y upgrade | |
RUN apt-get -y install build-essential | |
RUN apt-get -y install git | |
RUN apt-get -y install python | |
RUN apt-get -y install python3 |
This file contains hidden or 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
docker build -t python-web . | |
docker run -ti -p 8000:8000 python-web /usr/bin/python3 -m http.server |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment