Skip to content

Commit

Permalink
Fix Python version for v12
Browse files Browse the repository at this point in the history
  • Loading branch information
vrslev committed Nov 6, 2021
1 parent de04eb0 commit 9d41a6d
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
3 changes: 2 additions & 1 deletion build/frappe-nginx/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@
# This is done to ensures that node-sass binary remains common.
# node-sass is required to enable website theme feature used
# 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_BRANCH=develop
Expand Down
3 changes: 2 additions & 1 deletion build/frappe-worker/Dockerfile
Original file line number Diff line number Diff line change
@@ -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
RUN useradd -ms /bin/bash frappe
Expand Down
1 change: 1 addition & 0 deletions docker-bake.hcl
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ target "stable-args" {
args = {
GIT_BRANCH = "${GIT_BRANCH}"
IMAGE_TAG = "${GIT_BRANCH}"
PYTHON_VERSION = "${VERSION}" == "12" ? "3.7" : "3.9"
}
}

Expand Down

0 comments on commit 9d41a6d

Please sign in to comment.