Optimize example for incremental rebuilds
This commit is contained in:
parent
b19ae96105
commit
33412dc2cf
|
|
@ -1,2 +1,4 @@
|
|||
kubernetes.yml
|
||||
README.md
|
||||
README.md
|
||||
Dockerfile
|
||||
.dockerignore
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -0,0 +1 @@
|
|||
django==3.0
|
||||
Loading…
Reference in New Issue