diff --git a/.github/workflows/core-build-develop.yml b/.github/workflows/core-build-develop.yml index 44d214b..cf6a357 100644 --- a/.github/workflows/core-build-develop.yml +++ b/.github/workflows/core-build-develop.yml @@ -23,7 +23,7 @@ on: - .github/workflows/core-publish-images.yml schedule: - # Every day at 12:00 pm + # Every day at 00:00 UTC - cron: 0 0 * * * workflow_dispatch: @@ -34,8 +34,8 @@ jobs: with: repo: erpnext version: develop - python_version: 3.14.2 - node_version: 24.12.0 + python_version: "3.14" + node_version: "24" publish: if: ${{ github.repository == 'frappe/frappe_docker' && github.event_name != 'pull_request' }} @@ -45,8 +45,8 @@ jobs: repo: erpnext frappe_version: ${{ needs.test.outputs.frappe_version }} erpnext_version: ${{ needs.test.outputs.erpnext_version }} - python_version: 3.14.2 - node_version: 24.12.0 + python_version: "3.14" + node_version: "24" secrets: DOCKERHUB_USERNAME: ${{ secrets.DOCKERHUB_USERNAME }} DOCKERHUB_TOKEN: ${{ secrets.DOCKERHUB_TOKEN }} diff --git a/.github/workflows/core-build-stable.yml b/.github/workflows/core-build-stable.yml index 188e023..675c480 100644 --- a/.github/workflows/core-build-stable.yml +++ b/.github/workflows/core-build-stable.yml @@ -48,7 +48,7 @@ jobs: repo: erpnext version: "15" python_version: "3.11" - node_version: 22.23.2 + node_version: "22" v15_publish: if: ${{ github.repository == 'frappe/frappe_docker' && github.event_name != 'pull_request' }} @@ -59,7 +59,7 @@ jobs: frappe_version: ${{ needs.v15_test.outputs.frappe_version }} erpnext_version: ${{ needs.v15_test.outputs.erpnext_version }} python_version: "3.11" - node_version: 22.23.2 + node_version: "22" secrets: DOCKERHUB_USERNAME: ${{ secrets.DOCKERHUB_USERNAME }} DOCKERHUB_TOKEN: ${{ secrets.DOCKERHUB_TOKEN }} @@ -69,8 +69,8 @@ jobs: with: repo: erpnext version: "16" - python_version: 3.14.2 - node_version: 24.12.0 + python_version: "3.14" + node_version: "24" v16_publish: if: ${{ github.repository == 'frappe/frappe_docker' && github.event_name != 'pull_request' }} needs: v16_test @@ -79,8 +79,8 @@ jobs: repo: erpnext frappe_version: ${{ needs.v16_test.outputs.frappe_version }} erpnext_version: ${{ needs.v16_test.outputs.erpnext_version }} - python_version: 3.14.2 - node_version: 24.12.0 + python_version: "3.14" + node_version: "24" secrets: DOCKERHUB_USERNAME: ${{ secrets.DOCKERHUB_USERNAME }} DOCKERHUB_TOKEN: ${{ secrets.DOCKERHUB_TOKEN }} @@ -100,7 +100,7 @@ jobs: - name: Setup Python uses: actions/setup-python@v7 with: - python-version: "3.14.2" + python-version: "3.14" - name: Get latest versions run: python3 ./.github/scripts/get_latest_tags.py --repo erpnext --version 16 diff --git a/.github/workflows/core-build-test-images.yml b/.github/workflows/core-build-test-images.yml index 150c668..207a083 100644 --- a/.github/workflows/core-build-test-images.yml +++ b/.github/workflows/core-build-test-images.yml @@ -217,7 +217,7 @@ jobs: - name: Setup Python uses: actions/setup-python@v7 with: - python-version: "3.10" + python-version: "3.14" - name: Install dependencies run: | diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index 4df7e5a..8ff6329 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -18,7 +18,7 @@ jobs: - name: Setup Python uses: actions/setup-python@v7 with: - python-version: "3.10.6" + python-version: "3.14" # For shfmt pre-commit hook - name: Setup Go diff --git a/docker-bake.hcl b/docker-bake.hcl index cb59f83..3572755 100644 --- a/docker-bake.hcl +++ b/docker-bake.hcl @@ -6,10 +6,10 @@ variable "REGISTRY_USER" { } variable PYTHON_VERSION { - default = "3.14.2" + default = "3.14" } variable NODE_VERSION { - default = "24.13.0" + default = "24" } variable "FRAPPE_VERSION" { diff --git a/images/bench/Dockerfile b/images/bench/Dockerfile index 2b2540b..61fd67c 100644 --- a/images/bench/Dockerfile +++ b/images/bench/Dockerfile @@ -105,8 +105,8 @@ USER frappe WORKDIR /home/frappe # Install Python via pyenv -ENV PYTHON_VERSION_PREV=3.12.12 -ENV PYTHON_VERSION=3.14.2 +ENV PYTHON_VERSION_PREV=3.12 +ENV PYTHON_VERSION=3.14 ENV PYENV_ROOT=/home/frappe/.pyenv ENV PATH=$PYENV_ROOT/shims:$PYENV_ROOT/bin:$PATH @@ -132,20 +132,21 @@ RUN git clone ${GIT_REPO} --depth 1 -b ${GIT_BRANCH} .bench \ && echo "export BENCH_DEVELOPER=1" >>/home/frappe/.bashrc # Install Node via nvm -ENV NODE_VERSION_PREV=22.22.0 -ENV NODE_VERSION=24.13.0 +ENV NODE_VERSION_PREV=22 +ENV NODE_VERSION=24 ENV NVM_DIR=/home/frappe/.nvm -ENV PATH=${NVM_DIR}/versions/node/v${NODE_VERSION}/bin/:${PATH} +ENV NVM_SYMLINK_CURRENT=true +ENV PATH=${NVM_DIR}/current/bin/:${PATH} -RUN wget -qO- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.5/install.sh | bash \ +RUN wget -qO- https://raw.githubusercontent.com/nvm-sh/nvm/v0.40.6/install.sh | bash \ && . ${NVM_DIR}/nvm.sh \ && nvm install ${NODE_VERSION_PREV} \ - && nvm use v${NODE_VERSION_PREV} \ + && nvm use ${NODE_VERSION_PREV} \ && npm install -g yarn \ && nvm install ${NODE_VERSION} \ - && nvm use v${NODE_VERSION} \ + && nvm use ${NODE_VERSION} \ && npm install -g yarn \ - && nvm alias default v${NODE_VERSION} \ + && nvm alias default ${NODE_VERSION} \ && rm -rf ${NVM_DIR}/.cache \ && echo 'export NVM_DIR="/home/frappe/.nvm"' >>~/.bashrc \ && echo '[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" # This loads nvm' >> ~/.bashrc \ diff --git a/images/custom/Containerfile b/images/custom/Containerfile index 70e4317..5dd987c 100644 --- a/images/custom/Containerfile +++ b/images/custom/Containerfile @@ -1,4 +1,4 @@ -ARG PYTHON_VERSION=3.14.2 +ARG PYTHON_VERSION=3.14 ARG DEBIAN_BASE=bookworm FROM python:${PYTHON_VERSION}-slim-${DEBIAN_BASE} AS base @@ -10,9 +10,10 @@ ARG WKHTMLTOPDF_VERSION=0.12.6.1-3 ARG WKHTMLTOPDF_DISTRO=bookworm ARG INSTALL_CHROMIUM=true -ARG NODE_VERSION=24.13.0 +ARG NODE_VERSION=24 ENV NVM_DIR=/home/frappe/.nvm -ENV PATH=${NVM_DIR}/versions/node/v${NODE_VERSION}/bin/:${PATH} +ENV NVM_SYMLINK_CURRENT=true +ENV PATH=${NVM_DIR}/current/bin/:${PATH} RUN useradd -ms /bin/bash frappe \ && apt-get update \ @@ -44,13 +45,13 @@ RUN useradd -ms /bin/bash frappe \ media-types \ # NodeJS && mkdir -p ${NVM_DIR} \ - && curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.5/install.sh | bash \ + && curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.40.6/install.sh | bash \ && . ${NVM_DIR}/nvm.sh \ && nvm install ${NODE_VERSION} \ - && nvm use v${NODE_VERSION} \ + && nvm use ${NODE_VERSION} \ && npm install -g yarn \ && corepack enable pnpm \ - && nvm alias default v${NODE_VERSION} \ + && nvm alias default ${NODE_VERSION} \ && rm -rf ${NVM_DIR}/.cache \ && echo 'export NVM_DIR="/home/frappe/.nvm"' >>/home/frappe/.bashrc \ && echo '[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" # This loads nvm' >>/home/frappe/.bashrc \ diff --git a/images/production/Containerfile b/images/production/Containerfile index b30dd95..83bf302 100644 --- a/images/production/Containerfile +++ b/images/production/Containerfile @@ -1,4 +1,4 @@ -ARG PYTHON_VERSION=3.14.2 +ARG PYTHON_VERSION=3.14 ARG DEBIAN_BASE=bookworm FROM python:${PYTHON_VERSION}-slim-${DEBIAN_BASE} AS base @@ -6,9 +6,10 @@ ARG WKHTMLTOPDF_VERSION=0.12.6.1-3 ARG WKHTMLTOPDF_DISTRO=bookworm ARG INSTALL_CHROMIUM=true -ARG NODE_VERSION=24.13.0 +ARG NODE_VERSION=24 ENV NVM_DIR=/home/frappe/.nvm -ENV PATH=${NVM_DIR}/versions/node/v${NODE_VERSION}/bin/:${PATH} +ENV NVM_SYMLINK_CURRENT=true +ENV PATH=${NVM_DIR}/current/bin/:${PATH} RUN useradd -ms /bin/bash frappe \ && apt-get update \ @@ -40,13 +41,13 @@ RUN useradd -ms /bin/bash frappe \ media-types \ # NodeJS && mkdir -p ${NVM_DIR} \ - && curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.5/install.sh | bash \ + && curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.40.6/install.sh | bash \ && . ${NVM_DIR}/nvm.sh \ && nvm install ${NODE_VERSION} \ - && nvm use v${NODE_VERSION} \ + && nvm use ${NODE_VERSION} \ && npm install -g yarn \ && corepack enable pnpm \ - && nvm alias default v${NODE_VERSION} \ + && nvm alias default ${NODE_VERSION} \ && rm -rf ${NVM_DIR}/.cache \ && echo 'export NVM_DIR="/home/frappe/.nvm"' >>/home/frappe/.bashrc \ && echo '[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" # This loads nvm' >>/home/frappe/.bashrc \