kennethobsequio 843fc38f12 perf(docker): slim api image from 1.44GB to 657MB
The api image shipped every build artifact pnpm produced:

  - pnpm store + caches            769 MB
  - ffprobe-static (5 platforms)   335 MB
  - devDependencies (jest et al.)  included
  - pm2, npm cache                 ~38 MB

Split the build into a deps stage that installs with --prod and drops the
pnpm store/caches in the same layer (node_modules entries are hardlinks, so
they survive), then copy only node_modules into a clean runtime stage.

ffprobe-static ships ffprobe for darwin/linux/win32 + ia32/x64 but both
services already prefer a system ffprobe via `which ffprobe`, so its binaries
are stripped and apk ffmpeg provides ffprobe instead. That also adds the
ffmpeg binary services/ffmpeg.service.js needs for the mov/mkv fast-start
remux, which the old image never had.

Drop pm2: docker's restart policy covers crashes, and node now receives
SIGTERM directly (~17 MB image, ~40 MB RSS saved on a 1.9 GB droplet).

Verified on the QAS droplet: clean build 98s (was ~3m54s deploy step),
code-only rebuild 8s, all runtime deps + sharp + typst + ffprobe resolve,
container boots to the DB handshake.

Also prune superseded layers in the deploy workflow.
2026-10-29 00:00:11 +08:00
2026-09-27 23:13:02 +08:00
2026-09-22 01:50:22 +08:00
2026-09-22 13:25:22 +08:00
2026-08-29 16:16:57 +08:00
2026-06-30 19:31:45 +08:00
2026-09-21 23:26:01 +08:00
2026-09-27 16:38:58 +08:00

STARR Project by Philproperties

Version: 1.0.0
Date: October 6, 2025
Stack: Node.js · Express · Sequelize (PostgreSQL) · Google OAuth 2.0 · Nodemailer Features: Courses, Units, Lessons, Training, Subscriptionss)

Contributing

Every contributors must take note that we have Gitea owned by us independently so create your account here, We expect that you are in dev/safe branch so we recommend to have your own forked repository in Gitea here's summary:

BRANCH_NAME | DESCRIPTION
-------------------------
main - A protected branch maintain by creators (Any commits from other will be automatically rejected)
staging-qa - Everytime na may Pull Requests (PR) from your forked repository dito mismo 
             sa branch na ito kami mag-check per feature, per modification and also bug.
staging-uat - Working in progress so I will tell more about it.
dev/safe - With your forked repository this is default branch

Self-hosting

See Wiki

S
Description
A course & training platform by Philproperties so currently live in staging deployment.
https://starr.philproperties.orij.space Readme Apache-2.0
5.5 MiB
Languages
JavaScript 99.4%
CSS 0.5%