Commit Graph

38 Commits

Author SHA1 Message Date
Kyle Affolder
6fc80bc0fc change: ensure full Lato font is kept from build
Ensures that the full variant of the Lato font-family is kept/removed from Docker image build. (Keeps the size small!)
2025-02-17 12:27:32 -05:00
Kyle Affolder
8c03058f8d update: combine to avoid multiple processes
Combined to reduce spawning multiple `rm` processes.
2025-02-17 12:21:57 -05:00
Raj Nandan Sharma
d9c0bff780 fix: update Dockerfile to remove specific tzdata version for compatibility 2025-02-16 19:56:15 +05:30
Raj Nandan Sharma
beceace2c2 fix: update Dockerfile to correct documentation directory removal path 2025-02-16 19:23:45 +05:30
Raj Nandan Sharma
d978c82263 Updates documentation and Dockerfile configuration
Updates documentation to reflect the new directory structure.
The documentation now correctly references images in the `/documentation` directory.
Removes the `src/static/documentation` directory in the Dockerfile.
2025-02-16 18:31:18 +05:30
Kyle Affolder
77a57ee609 fix(docker): build issues
The following changes have been made:

* Ensured `package-lock.json` is up-to-date with latest dependencies from `package.json` - moved check to new workflow job and set as dependency for ‘build-and-push-to-registries’ job
* Updated branch-tagging for non-main branches (used when building Docker images)
* Restored pinned OS package versions in Dockerfile (for best-security)
* Restored “TODO” comments to Dockerfile (for tracking purposes and because I will revisit those items later this week)
* Added `—no-fund` tag to suppress npm package funding messages (helpful for CI/CD)
* Changed from `wget` to `curl` to resolve Debian package versioning issue between differing architectures (was one of the reasons causing the build to fail)
* As a part of the last comment, needed to then conditionalize container healthcheck logic
* Checked in newest `package-lock.json` file
* Fixed broken Docker badges in `README.template.md`
2025-02-10 16:15:08 -05:00
Raj Nandan Sharma
6115beece3 fix: docker fix 2025-02-10 23:05:06 +05:30
Raj Nandan Sharma
83755bdd25 fix: docker fix 2025-02-10 22:59:07 +05:30
Raj Nandan Sharma
06910fbd4d fix: docker fix 2025-02-10 22:46:33 +05:30
Raj Nandan Sharma
154e7dd185 fix: docker fix 2025-02-10 22:41:18 +05:30
Kyle Affolder
d552f541ac fix(docker): remove unnecessary files from build 2025-02-09 00:35:59 -05:00
Kyle Affolder
9bbe665984 update(docker): add TODO comments for future work 2025-02-08 14:22:16 -05:00
Kyle Affolder
d0ea8551b6 update(docker): add TODO comments for future work 2025-02-08 13:56:11 -05:00
Kyle Affolder
1e77253a63 update(docker): healthcheck port & path + cleanup 2025-02-08 02:12:31 -05:00
Kyle Affolder
d349a7591e update(docker): ver. pinning, healthcheck, etc.
* add: version pinning (better stability)
* remove: unnecessary KENER_BASE_PATH env. variable
* update: reduce permissions of /uploads and /database directories
* add: `entrypoint.sh` file
* add: properly map container timezone and localtime
* add: container healthcheck
* change: restrict to non-root “node” user
2025-02-08 00:04:19 -05:00
Kyle Affolder
52a8cca3e8 fix(docker): broken build & run as non-root user 2025-02-07 13:06:17 -05:00
Kyle Affolder
fdad329148 update(docker): simplified variable name 2025-02-05 18:37:10 -05:00
Kyle Affolder
73bf5f3fbe refactor(docker): improve build w/ multistage
* Switch to multi-stage build pattern for smaller image size
* Add support for both Alpine and Debian variants via build args
* Change default image base to `node:23-slim` instead of using `node:23` (no need for full Debian base present in `node:23` since now prioritization is given to production-ready builds)
* Improve caching with --mount for npm dependencies
* Separate build and runtime dependencies
* Remove unnecessary Node.js packages in final stage
* Fix permissions on uploads/database directories
* Add proper scoping for build arguments
* Set NODE_ENV=production for better performance

This change reduces the final image size and improves build caching while adding flexibility to choose between Alpine and Debian base images.

Original: ~1.2GB
New Alpine: ~350MB
New Debian: ~450MB
2025-02-05 14:03:46 -05:00
Raj Nandan Sharma
46c1a392b8 refactor: remove docs from docker build 2025-01-25 21:41:11 +05:30
Raj Nandan Sharma
f9831490af fix: base path for docker build 2025-01-24 09:08:13 +05:30
Raj Nandan Sharma
0ea7d687a7 fix: fixes #198 2025-01-18 12:39:05 +05:30
Raj Nandan Sharma
3480c78360 fix: fixed bugs reported in reddit around analytics and css 2025-01-17 08:39:29 +05:30
Raj Nandan Sharma
6566bc5f8f build: docker file update 2025-01-03 11:48:18 +05:30
Raj Nandan Sharma
2c4004d91f fix: as reported in #103 changing timezone to UTC 2024-12-04 15:33:01 +05:30
Raj Nandan Sharma
37706b87c4 docs: updated docs and docker file 2024-12-04 15:21:13 +05:30
Raj Nandan Sharma
71b56db909 docs: added api reference 2024-11-19 11:11:58 +05:30
Raj Nandan Sharma
1b8e05ad1f feat: added sitemap again, fixed #59 also 2024-11-15 22:52:36 +05:30
Raj Nandan Sharma
e1fe07cf26 build: new docker build 2024-11-13 21:44:57 +05:30
Raj Nandan Sharma
18e851a205 build: new docker build 2024-11-13 21:28:46 +05:30
Raj Nandan Sharma
c992ec22ca fixed docker file 2024-11-13 10:33:29 +05:30
Raj Nandan Sharma
c57f75d1ea push 0.0.16 to git 2024-11-12 21:32:29 +05:30
Raj Nandan Sharma
b58af80552 feat(kener): added support for base path 2024-04-29 10:15:02 +05:30
Raj Nandan Sharma
6bb9808d0c fix(dockerfile): updates docker file for locales 2024-04-26 19:01:48 +05:30
Raj Nandan Sharma
3c91ff2860 fix(docker): updated docs to make it work using docker 2024-04-22 21:53:08 +05:30
Raj Nandan Sharma
f921df0e97 fixed bug in docker file 2024-03-03 14:19:47 +05:30
Raj Nandan Sharma
73147eee27 fixed bug in docker file 2024-03-03 13:32:03 +05:30
Raj Nandan Sharma
8cdf217a45 fixed bug in docker file 2024-03-03 13:19:33 +05:30
FoxxMD
4d0147a174 feat: Add dockerfile and docker-compose 2024-01-24 11:28:48 -05:00