Advertisement
Guest User

Untitled

a guest
May 27th, 2019
92
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.42 KB | None | 0 0
  1. FROM ubuntu:latest
  2. RUN apt-get update && apt-get install -y software-properties-common
  3. RUN apt-get install -y python3-pip python3-dev build-essential
  4. RUN pip3 install --upgrade pip
  5. ENV DEBIAN_FRONTEND noninteractive
  6.  
  7. ADD ./requirements.txt /tmp/requirements.txt
  8.  
  9. # Install dependencies
  10. RUN pip install -r /tmp/requirements.txt
  11.  
  12. # Add our code
  13. ADD ./webapp /opt/webapp/
  14. WORKDIR /opt/webapp
  15.  
  16. # To deploy locally
  17. CMD python3 app.py
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement