Advertisement
Guest User

Untitled

a guest
Jun 17th, 2019
79
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.42 KB | None | 0 0
  1. FROM python:3.7-slim
  2.  
  3. # Set environment varibles
  4. ENV PYTHONDONTWRITEBYTECODE 1
  5. ENV PYTHONUNBUFFERED 1
  6.  
  7. # Set work directory
  8. WORKDIR /code
  9.  
  10. # Install dependencies
  11. COPY Pipfile Pipfile.lock /code/
  12. RUN pip install pipenv && pipenv install --system
  13.  
  14. # Copy project
  15. COPY . /code/
  16.  
  17. setup:
  18. addons:
  19. - plan: heroku-postgresql
  20. build:
  21. docker:
  22. web: Dockerfile
  23. run:
  24. web: python /code/manage.py runserver 0.0.0.0:$PORT
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement