Guest User

Untitled

a guest
Jun 25th, 2018
97
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.35 KB | None | 0 0
  1. python -m SimpleHTTPServer 7000
  2.  
  3. FROM ubuntu:14.04
  4. COPY index.html
  5. FROM python:latest
  6. EXPOSE 80
  7. CMD ["python SimpleHTTPServer 7000", "-m"]
  8.  
  9. FROM python:3
  10. ADD my_script.py /
  11. RUN pip install pystrich
  12. CMD [ "python", "-m", "SimpleHTTPServer", "7000"]
  13.  
  14. docker build -t python-myapp (where -t argument is the image name)
  15.  
  16. docker run python-myapp
Add Comment
Please, Sign In to add comment