Move ARG PYTHON_VERSION=3.9-slim-buster to the global scope

of production Dockerfile to fix #3187 which occurs when
 Gulp is selected as `js_task_runner` on project generation.
This commit is contained in:
Fabio C. Barrionuevo da Luz 2021-05-17 22:04:38 -03:00
parent 628f07949a
commit abba9de2bd

View File

@ -1,3 +1,5 @@
ARG PYTHON_VERSION=3.9-slim-buster
{% if cookiecutter.js_task_runner == 'Gulp' -%}
FROM node:10-stretch-slim as client-builder
@ -11,8 +13,6 @@ RUN npm run build
{%- endif %}
ARG PYTHON_VERSION=3.9-slim-buster
# define an alias for the specfic python version used in this file.
FROM python:${PYTHON_VERSION} as python