- Changed user to root for installing pnpm globally, then switched back to node for application work.
- Updated WORKDIR to ensure proper directory context for the application build process.
- Replaced npm with pnpm for installing dependencies, improving installation speed and consistency.
- Updated the Dockerfile to copy pnpm-lock.yaml and use the frozen lockfile option during installation.
- Adjusted build command to utilize pnpm for building the frontend.
- Implemented caching for npm and Go module downloads to speed up builds.
- Updated base image for the final runtime stage to a more minimal static image.
- Added metadata labels for better image documentation and versioning.
- Created a data directory for configuration files and adjusted ownership.
- Modified the command to include paths for authentication and hashes files.