Merge pull request #8 from bitnami/ordering

Optimize example for incremental rebuilds
This commit is contained in:
Marko Mikulicic
2019-12-03 17:30:25 +01:00
committed by GitHub
3 changed files with 12 additions and 3 deletions
+3 -1
View File
@@ -1,2 +1,4 @@
kubernetes.yml
README.md
README.md
Dockerfile
.dockerignore
+8 -2
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
+1
View File
@@ -0,0 +1 @@
django==3.0