Skip to content

Add Dockerfile for managed-chatkit - #128

Open
himubey wants to merge 1 commit into
openai:mainfrom
himubey:add-dockerfile-managed-chatkit
Open

Add Dockerfile for managed-chatkit#128
himubey wants to merge 1 commit into
openai:mainfrom
himubey:add-dockerfile-managed-chatkit

Conversation

@himubey

@himubey himubey commented Mar 23, 2026

Copy link
Copy Markdown

Summary

Adds a production-ready Dockerfile for the managed-chatkit application.

Changes

  • Dockerfile: Multi-stage build with Node 20 (frontend) and Python 3.12 (backend)
  • .dockerignore: Keeps images small by excluding unnecessary files
  • README.md: Added Docker deployment documentation
  • main.py: Added static file serving for production frontend

Features

  • Multi-stage build for optimized image size
  • Health check endpoint monitoring
  • Secrets passed at runtime (never baked into image)
  • 4 uvicorn workers for production use
  • Works with all major container orchestration platforms

Closes #119

Implements multi-stage Docker build for production deployment:
- Stage 1: Node 20 builds Vite frontend with build-time args
- Stage 2: Python 3.12 runs FastAPI with static file serving
- Adds health check endpoint monitoring
- Secrets (OPENAI_API_KEY) passed at runtime only
- Includes .dockerignore for small, secure images

Closes openai#119
@John-Jepsen

Copy link
Copy Markdown

@katia-openai

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.

Add Dockerfile for managed-chatkit

2 participants