mirror of
https://github.com/bitnami/containers.git
synced 2026-02-21 23:57:21 +08:00
Switch example to python3
Python2 spits out deprecation warnings
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
FROM bitnami/python:2 as builder
|
||||
FROM bitnami/python:3 as builder
|
||||
COPY . /app
|
||||
WORKDIR /app
|
||||
RUN virtualenv . && \
|
||||
@@ -6,7 +6,7 @@ RUN virtualenv . && \
|
||||
pip install django && \
|
||||
python manage.py migrate
|
||||
|
||||
FROM bitnami/python:2-prod
|
||||
FROM bitnami/python:3-prod
|
||||
COPY --from=builder /app /app
|
||||
WORKDIR /app
|
||||
EXPOSE 8000
|
||||
|
||||
Reference in New Issue
Block a user