Releases: HDProduction010/SquadJSxDocker
Releases · HDProduction010/SquadJSxDocker
SquadJSxDocker
Dockerfile Improvements
-
Multi-Stage Build: Implemented a multi-stage build process to optimize the Docker image. The first stage installs dependencies, while the second stage sets up the runtime environment.
-
Tool Installation: Added necessary tools (
curl,jq,git) to both build and final stages to ensure smooth operation. -
Dependency Management: Ensured that dependencies are installed using npm workspaces during the build stage.
-
Version Check and Update:
- Added a mechanism to check for the latest release tag from the GitHub repository.
- Implemented conditional logic to update the repository only if a new version is found.
- Ensured that the
config.jsonfile is backed up before cleaning the directory and restored afterward.
-
Clean Directory Handling: Used
findcommands to clean the working directory correctly, preserving necessary files likeconfig.json. -
Startup Command: Added a startup command to run the application with specific Node.js settings.