Advertisement
Guest User

Untitled

a guest
Oct 28th, 2018
255
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.64 KB | None | 0 0
  1. FROM ubuntu:bionic
  2.  
  3. ADD ./requirements.txt /usr/local/bin/app/requirements.txt
  4.  
  5. RUN set -x && \
  6. apt-get update && \
  7. apt-get install -y python3-pip && \
  8. pip3 install --no-cache-dir -r /usr/local/bin/app/requirements.txt && \
  9. apt-get purge -y python3-pip && \
  10. apt-get autoremove -y && \
  11. apt-get install -y python3.6 libpython3.6 && \
  12. apt-get clean -y && \
  13. apt-get autoclean -y && \
  14. rm -f /var/cache/apt/*.bin && \
  15. find /tmp -type f -delete && \
  16. find /var/tmp -type f -delete
  17.  
  18. ENV LANG=C.UTF-8
  19. ENV LC_ALL=C.UTF-8
  20.  
  21. ADD . /usr/local/bin/app
  22. CMD /usr/local/bin/app/start-prod
  23.  
  24. EXPOSE 5000
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement