Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update Dockerfile #148

Closed
wants to merge 1 commit into from
Closed

Conversation

billytrend-cohere
Copy link
Contributor

@billytrend-cohere billytrend-cohere commented May 19, 2024

Thank you for contributing to the Cohere Toolkit!

  • PR title: "area: description"

    • Where "area" is whichever of interface, frontend, model, tools, backend, etc. is being modified. Use "docs: ..." for purely docs changes, "infra: ..." for CI changes.
    • Example: "deployment: add Azure model option"
  • PR message: Delete this entire checklist and replace with

    • Description: a description of the change
    • Issue: the issue # it fixes, if applicable
    • Dependencies: any dependencies required for this change
  • Add tests and docs: Please include testing and documentation for your changes

  • Lint and test: Run make lint and make run-tests

AI Description

This PR makes changes to the Dockerfile used for deploying to Google Cloud Run.

Summary

The Dockerfile has been updated to specify the Python version as 3.11.8 and includes installation instructions for both Python and the Poetry dependency manager. It sets up the environment, installs necessary dependencies, and configures the application to run on Google Cloud.

Changes

  • Sets the PYTHON_VERSION to 3.11.8.
  • Installs Python 3.11.8 and Poetry 1.6.1.
  • Copies dependency files (pyproject.toml and poetry.lock) to avoid cache invalidations.
  • Installs Node.js and pm2 for managing the frontend application.
  • Configures environment variables for the frontend, including NEXT_PUBLIC_API_HOSTNAME and PYTHON_INTERPRETER_URL.
  • Copies frontend source code and configuration files.
  • Installs frontend dependencies using pnpm.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant