Skip to content

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.

Docker: the api image carries password.js and rate-limit.js, which server.js imports since password sign-in, so it boots again (#118)

Duarte Santos4e47ae4046a6
diff --git a/api/Dockerfile b/api/Dockerfile
index 90a1199b4..51c1f8f2a 100644
--- a/api/Dockerfile
+++ b/api/Dockerfile
@@ -51,7 +51,9 @@ COPY package.json package-lock.json* ./
# build host happened to be.
RUN npm ci --omit=dev --omit=optional && npm cache clean --force
-COPY server.js push-messages.js verify-error.js ./
+# Every module server.js imports from the api root has to be named here: the image carries nothing
+# else, and one that is missing only shows at boot, as ERR_MODULE_NOT_FOUND.
+COPY server.js push-messages.js verify-error.js password.js rate-limit.js ./
COPY coach ./coach
ENV NODE_ENV=production
ENV PORT=3000