Skip to content

Conversation

@descampsk
Copy link

Closes #368

This PR separates each servers into its own Dockerfile to ease the deployment in Cloud Provider solutions like Cloud Run.

It accelerate also the developpment by reducing the build size of each image.

It adds a new docker compose to use this new images.


id: uuid.UUID = Field(primary_key=True, default_factory=uuid.uuid4)
content: str
content: str = Field(sa_column=Column(Text, nullable=False))
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Issue with MYSQL external database and long content

instructions: Optional[str] = Field(sa_column=Column(String), default=None)
tone: Optional[str] = Field(sa_column=Column(String), default=None)
verbosity: Optional[str] = Field(sa_column=Column(String), default=None)
instructions: Optional[str] = Field(sa_column=Column(Text), default=None)
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Issue with MYSQL external database and long content

tone: Optional[str] = Field(sa_column=Column(String), default=None)
verbosity: Optional[str] = Field(sa_column=Column(String), default=None)
instructions: Optional[str] = Field(sa_column=Column(Text), default=None)
tone: Optional[str] = Field(sa_column=Column(String(128)), default=None)
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Issue with MYSQL external database. String without size is not accepted

content: dict = Field(sa_column=Column(JSON))
html_content: Optional[str]
speaker_note: Optional[str] = None
speaker_note: Optional[str] = Field(sa_column=Column(Text), default=None)
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Issue with MYSQL external database and long content

uvicorn.run(
"api.main:app",
host="127.0.0.1",
host="0.0.0.0",
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Needed for the new docker compose and the deployment on Cloud Run

@@ -0,0 +1,2 @@
#!/bin/sh
exec npm run start -- -H 0.0.0.0 -p "$PORT"
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Needed for the new docker compose and the deployment on Cloud Run

@descampsk descampsk force-pushed the separate-dockerfile-to-ease-deployment branch from d97daf4 to e534bfd Compare December 19, 2025 10:22
@descampsk descampsk force-pushed the separate-dockerfile-to-ease-deployment branch from e534bfd to 44ed4b7 Compare December 19, 2025 11:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

1 participant