Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- FROM python:3.7-slim
- # Set environment varibles
- ENV PYTHONDONTWRITEBYTECODE 1
- ENV PYTHONUNBUFFERED 1
- # Set work directory
- WORKDIR /code
- # Install dependencies
- COPY Pipfile Pipfile.lock /code/
- RUN pip install pipenv && pipenv install --system
- # Copy project
- COPY . /code/
- setup:
- addons:
- - plan: heroku-postgresql
- build:
- docker:
- web: Dockerfile
- run:
- web: python /code/manage.py runserver 0.0.0.0:$PORT
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement