SHARE
TWEET

Untitled

a guest Jun 17th, 2019 49 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top