2
0
mirror of https://github.com/frappe/frappe_docker.git synced 2024-11-09 14:50:58 +00:00

Fix Python version for v12

This commit is contained in:
Lev 2021-11-06 21:26:15 +03:00
parent de04eb032c
commit 9d41a6d24e
3 changed files with 5 additions and 2 deletions

View File

@ -2,7 +2,8 @@
# This is done to ensures that node-sass binary remains common. # This is done to ensures that node-sass binary remains common.
# node-sass is required to enable website theme feature used # node-sass is required to enable website theme feature used
# by Website Manager role in Frappe Framework # by Website Manager role in Frappe Framework
FROM python:3.9-slim-bullseye ARG PYTHON_VERSION=3.9
FROM python:${PYTHON_VERSION}-slim-bullseye
ARG GIT_REPO=https://github.com/frappe/frappe ARG GIT_REPO=https://github.com/frappe/frappe
ARG GIT_BRANCH=develop ARG GIT_BRANCH=develop

View File

@ -1,4 +1,5 @@
FROM python:3.9-slim-bullseye ARG PYTHON_VERSION=3.9
FROM python:${PYTHON_VERSION}-slim-bullseye
# Add non root user without password # Add non root user without password
RUN useradd -ms /bin/bash frappe RUN useradd -ms /bin/bash frappe

View File

@ -49,6 +49,7 @@ target "stable-args" {
args = { args = {
GIT_BRANCH = "${GIT_BRANCH}" GIT_BRANCH = "${GIT_BRANCH}"
IMAGE_TAG = "${GIT_BRANCH}" IMAGE_TAG = "${GIT_BRANCH}"
PYTHON_VERSION = "${VERSION}" == "12" ? "3.7" : "3.9"
} }
} }