Skip to content

Instantly share code, notes, and snippets.

@tag1216
Created October 12, 2016 03:08
Show Gist options
  • Save tag1216/078b2191d5617a4dd7bf38860ab15726 to your computer and use it in GitHub Desktop.
Save tag1216/078b2191d5617a4dd7bf38860ab15726 to your computer and use it in GitHub Desktop.
DockerでPythonサンプルWebサーバー
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
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