Optimize example for incremental rebuilds

This commit is contained in:
Marko Mikulicic 2019-12-03 17:05:03 +01:00
parent b19ae96105
commit 33412dc2cf
3 changed files with 12 additions and 3 deletions

View File

@ -1,2 +1,4 @@
kubernetes.yml
README.md
README.md
Dockerfile
.dockerignore

View File

@ -1,9 +1,15 @@
FROM bitnami/python:3 as builder
COPY . /app
COPY requirements.txt /app
WORKDIR /app
RUN virtualenv . && \
. bin/activate && \
pip install django && \
pip install -r requirements.txt
COPY . /app
RUN . bin/activate && \
python manage.py migrate
FROM bitnami/python:3-prod

View File

@ -0,0 +1 @@
django==3.0