Commit Graph

19 Commits

Author SHA1 Message Date
1a2b8c4407 refactor: convert to Cargo workspace structure 2025-12-11 17:21:10 -06:00
702205e181 refactor(docker): optimize multi-stage build with cargo-chef and layer caching
Improves Docker build performance and security through better layer caching,
dependency pre-building, and a minimal non-root runtime container.

- Add cargo-chef for Rust dependency caching across demo and server builds
- Separate planner and builder stages for optimal layer reuse
- Use pnpm with frozen lockfile for reproducible frontend builds
- Switch to debian:12-slim runtime with non-root user (uid 1000)
- Add health check endpoint monitoring
- Strip release binaries to reduce image size
- Pre-compress frontend assets during build
2025-12-11 12:18:57 -06:00
e0bb0f52f0 feat: dynamically set PORT from Dockerfile, add .env.example 2025-08-20 17:40:09 -05:00
8431290ea7 fix: RAILWAY_PUBLIC_DOMAIN envvar not resolving, add fallback & warning, change Dockerfile interpolation 2025-08-20 16:45:18 -05:00
cdbc474819 Pass ARG RAILWAY_PUBLIC_DOMAIN 2025-01-02 16:56:06 -06:00
c288c52517 include const time host info for reqwest endpoint 2024-12-23 20:24:50 -06:00
61efe6c194 Add /notify route, fix filename extension generation, Message u32 id, 08x format pad 2024-12-23 19:13:22 -06:00
9a54104bdd Add TODOs for planning 2024-12-23 14:12:48 -06:00
d7d3b83007 Add precompression step to frontend 2024-12-22 01:43:44 -06:00
101ffe3172 demo astrojs frontend 2024-12-22 01:20:06 -06:00
81c3087462 Add COPY templates step 2024-12-22 01:11:00 -06:00
671d3eebea Fix COPY path for windows demo build 2024-12-22 00:35:31 -06:00
4354de47bc Setup cross platform builds for windows 2024-12-22 00:13:20 -06:00
bb7eada73c Remove mount cache comments 2024-12-21 21:47:08 -06:00
da71ab473a Just use static 5800 port 2024-12-21 21:40:03 -06:00
1d0bdcd08d Expose port via ARG PORT 2024-12-21 21:22:25 -06:00
24af460315 Disable cache mounts temporarily 2024-12-21 21:09:53 -06:00
306c64e21d Fix railway cache mount ids 2024-12-21 21:08:15 -06:00
7fa310d3cf dockerfile multistage demo+server 2024-12-21 21:06:21 -06:00