Skip to content

Releases: HDProduction010/SquadJSxDocker

SquadJSxDocker

29 Jul 00:30
1ce17d8

Choose a tag to compare

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.json file is backed up before cleaning the directory and restored afterward.
  • Clean Directory Handling: Used find commands to clean the working directory correctly, preserving necessary files like config.json.

  • Startup Command: Added a startup command to run the application with specific Node.js settings.