mirror of
https://github.com/bitnami/containers.git
synced 2026-02-15 09:27:22 +08:00
Optimize example for incremental rebuilds
This commit is contained in:
@@ -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
|
||||
|
||||
1
bitnami/python/example/requirements.txt
Normal file
1
bitnami/python/example/requirements.txt
Normal file
@@ -0,0 +1 @@
|
||||
django==3.0
|
||||
Reference in New Issue
Block a user