Python version

This commit is contained in:
Oleg Lavrovsky 2017-03-27 23:32:32 +02:00
parent 14a761e90a
commit 95bb53984f
3 changed files with 17 additions and 2 deletions

View File

@ -1,4 +1,4 @@
FROM python:3.6.1
FROM python:3.6
RUN mkdir -p /usr/src/app
WORKDIR /usr/src/app
@ -6,7 +6,13 @@ WORKDIR /usr/src/app
COPY requirements.txt /usr/src/app/
RUN pip install --no-cache-dir -r requirements.txt
RUN npm install -g bower grunt-cli
RUN npm install
RUN bower install
RUN grunt
ENV PYTHONUNBUFFERED 1
ENV PYTHONDONTWRITEBYTECODE 1
ENV LANG en_US.UTF-8
ENV PYTHONIOENCODING utf_8
ENV DISABLE_COLLECTSTATIC 1

View File

@ -57,3 +57,12 @@ Now access the admin panel with the user account you created earlier: http://loc
## Troubleshooting
- Issues with migrating database tables in SQLite during development? Try `./manage.py migrate --fake`
## Production notes
We are using [Dokku](http://dokku.viewdocs.io/) for automated deployment.
```
sudo dokku apps:create phase-alpha
sudo dokku config:set phase-alpha BUILDPACK_URL=https://github.com/heroku/heroku-buildpack-python
```

View File

@ -1 +1 @@
python-3.6.1
python-3.6.0