jorge-menjivar / unsaged

Open source chat kit engineered for seamless interaction with AI models.
https://unsaged.com
Apache License 2.0
247 stars 77 forks source link

Update Dockerfile to support monorepo and pnpm #120

Closed Bortus-AI closed 9 months ago

Bortus-AI commented 9 months ago

Here are the revised instructions with additional clarity and helpfulness:

  1. Clone the Repository:

    • Open your terminal.
    • Type git clone https://github.com/jorge-menjivar/unsaged.git and press Enter.
    • This command will clone the repository from GitHub to your local machine.
  2. Navigate to the Application Directory:

    • Enter the application's directory with cd apps/unsaged/.
  3. Install Dependencies:

    • Run pnpm install to install all the necessary dependencies for the application.
  4. Create and Edit Environment Variables:

    • Use nano .env.local or vi .env.local to create and edit your local environment variables. Make the necessary changes and save the file.
  5. Return to the Project Root Directory:

    • After saving the environment variables, return to the root directory of the project by typing cd ../../.
  6. Build the Docker Image:

    • To build the Docker image, execute docker build -f apps/unsaged/Dockerfile --no-cache -t unsaged .
    • This command builds a Docker image named 'unsaged' based on the Dockerfile located in apps/unsaged
  7. Run the Docker Container:

    • Finally, start the application in a Docker container using docker run -p 127.0.0.1:3000:3000 --name unsaged unsaged.
    • This command runs the 'unsaged' image as a container, mapping port 3000 of the container to port 3000 on your host machine.

Remember to replace any placeholders in the .env.local file) with your specific configurations. If you encounter any errors, check the command syntax and ensure you're in the correct directory.

vercel[bot] commented 9 months ago

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
unsaged ✅ Ready (Inspect) Visit Preview 💬 Add feedback Dec 3, 2023 1:14am
1 Ignored Deployment | Name | Status | Preview | Comments | Updated (UTC) | | :--- | :----- | :------ | :------- | :------ | | **unsaged-docs** | ⬜️ Ignored ([Inspect](https://vercel.com/jorge-menjivar/unsaged-docs/5HNYm7gwXFwh6iGKzJcvk2RYnKsQ)) | [Visit Preview](https://unsaged-docs-git-dockerfile-patch-for-pnpm-jorge-menjivar.vercel.app) | | Dec 3, 2023 1:14am |