Open-source gym & body-weight tracker, now in the App Store (iPhone + Apple Watch) and as an Android APK. Plan routines, log workouts, see which muscles are trained, import from Strong/Hevy/FitNotes. Self-host it or use it on the phone alone.
JavaScript apple-watchbodyweightdockerfitnessfitness-trackergymhealthiosmcpnodejspasskeysprogressive-web-applicationspwareactself-hostedself-hostingvitewebauthnweightliftingworkout-tracker
Security: patched Node and nginx images, vite/vitest/ip-address bumps
MohamedAfrashce16a913ac38
diff --git a/.gitlab-ci.yml b/.gitlab-ci.ymlindex d87f6189b..27a307c18 100644--- a/.gitlab-ci.yml+++ b/.gitlab-ci.yml@@ -45,8 +45,8 @@ stages:- maintenancevariables:- # node:22-alpine in web/Dockerfile and api/Dockerfile — CI must match production.- NODE_IMAGE: "node:22-alpine"+ # node:22.23.4-alpine in web/Dockerfile and api/Dockerfile — CI must match production.+ NODE_IMAGE: "node:22.23.4-alpine"DOCKER_IMAGE: "docker:28-cli"DOCKER_DIND_IMAGE: "docker:28-dind"TRIVY_IMAGE: "aquasec/trivy:0.74.0"diff --git a/api/Dockerfile b/api/Dockerfileindex 9698f0949..d20dfaf7e 100644--- a/api/Dockerfile+++ b/api/Dockerfile@@ -11,7 +11,7 @@# The stage order matters: Docker builds the *last* stage when none is named, so `default` is# deliberately last and `coach` sits above it.-FROM node:22-alpine AS base+FROM node:22.23.4-alpine AS base# Declared on the base stage so both targets inherit the labels and the healthcheck.ARG VERSION=devdiff --git a/api/package-lock.json b/api/package-lock.jsonindex 49d846d4c..9cf871ef1 100644--- a/api/package-lock.json+++ b/api/package-lock.json@@ -1153,9 +1153,10 @@"integrity": "sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ=="},"node_modules/ip-address": {- "version": "10.7.3",- "resolved": "https://registry.npmjs.org/ip-address/-/ip-address-10.7.3.tgz",- "integrity": "sha512-A1kdq/tSb5QjvKvAMgIoEvDBIgL7qaqVP/jkvSwYYRZ9iEzvPpopxp2wQfu3SuZRHtpHNxMn8Fs0bS+gf5Xmwg==",+ "version": "10.7.4",+ "resolved": "https://registry.npmjs.org/ip-address/-/ip-address-10.7.4.tgz",+ "integrity": "sha512-DWBMKyeM25D70nrIiTkgQth59/G+naKOTep6huF9j+GmeK3DMD60Zvxg5d5qQnz+38AHgou6ean2LECX+lrKDg==",+ "license": "MIT","optional": true,"peer": true,"engines": {diff --git a/frontend/src/lib/api-base.test.js b/frontend/src/lib/api-base.test.jsindex 87c4b2951..c98e65728 100644--- a/frontend/src/lib/api-base.test.js+++ b/frontend/src/lib/api-base.test.js@@ -278,8 +278,8 @@ describe('the web container refuses a BASE_PATH it cannot serve', () => {// master both stay there. The listen port stays 80: compose, the probes and the healthcheck// all address NGINX_PORT. The base image's EXPOSE 8080 is only metadata.const dockerfile = readFileSync(join(WEB, 'Dockerfile'), 'utf8')- expect(dockerfile).toMatch(/^FROM --platform=\$BUILDPLATFORM node:22-alpine AS build$/m)- expect(dockerfile).toMatch(/^FROM nginxinc\/nginx-unprivileged:alpine$/m)+ expect(dockerfile).toMatch(/^FROM --platform=\$BUILDPLATFORM node:22(\.\d+\.\d+)?-alpine AS build$/m)+ expect(dockerfile).toMatch(/^FROM nginxinc\/nginx-unprivileged:(\d+\.\d+\.\d+-)?alpine$/m)const users = [...dockerfile.matchAll(/^USER \S+$/gm)].map(m => m[0])expect(users.at(-1)).toBe('USER 101')const root = dockerfile.search(/^USER root$/m)diff --git a/mcp/package-lock.json b/mcp/package-lock.jsonindex 584a5dc53..aa0026bdb 100644--- a/mcp/package-lock.json+++ b/mcp/package-lock.json@@ -1304,9 +1304,10 @@"license": "ISC"},"node_modules/ip-address": {- "version": "10.7.3",- "resolved": "https://registry.npmjs.org/ip-address/-/ip-address-10.7.3.tgz",- "integrity": "sha512-A1kdq/tSb5QjvKvAMgIoEvDBIgL7qaqVP/jkvSwYYRZ9iEzvPpopxp2wQfu3SuZRHtpHNxMn8Fs0bS+gf5Xmwg==",+ "version": "10.7.4",+ "resolved": "https://registry.npmjs.org/ip-address/-/ip-address-10.7.4.tgz",+ "integrity": "sha512-DWBMKyeM25D70nrIiTkgQth59/G+naKOTep6huF9j+GmeK3DMD60Zvxg5d5qQnz+38AHgou6ean2LECX+lrKDg==",+ "license": "MIT","engines": {"node": ">= 12"}diff --git a/web/Dockerfile b/web/Dockerfileindex 9eec222fc..fe123fd56 100644--- a/web/Dockerfile+++ b/web/Dockerfile@@ -7,7 +7,7 @@# QEMU — and QEMU-emulated npm installs are known to corrupt esbuild/rollup's platform-# specific native binaries, which is what breaks `vite build` with unrelated-looking# module-resolution errors.-FROM --platform=$BUILDPLATFORM node:22-alpine AS build+FROM --platform=$BUILDPLATFORM node:22.23.4-alpine AS build# The frontend sits at /app/frontend, not /app: the Coach's runtime-neutral core lives in# api/coach/core and is imported from frontend/src as ../../../api/coach/core/*, so the two# have to keep the same relative position they have in the repository. Copying frontend/ alone@@ -26,7 +26,7 @@ COPY frontend/ ./ARG APP_BUILD=""RUN APP_BUILD="$APP_BUILD" npm run build-FROM nginxinc/nginx-unprivileged:alpine+FROM nginxinc/nginx-unprivileged:1.30.6-alpine# Same reason as in api/Dockerfile: alpine fixes land faster than the nginx image is rebuilt.# The base's last instruction is USER 101, and apk then exits 99 — it cannot open its log as# that user. Upgrade as root, then switch back. 101 has to be the last USER in this file so