Docker Deployment
Deploy containerized applications to Chita Cloud
Overview
Deploy any Docker container to Chita Cloud with automatic scaling and zero-downtime deployments.
Dockerfile Example
FROM node:20-alpine
WORKDIR /app
COPY package*.json ./
RUN npm ci --only=production
COPY . .
EXPOSE 3000
CMD ["node", "server.js"]Deployment
- Prepare your Dockerfile and application files
- Create a ZIP archive with your Dockerfile and code
- Click "Deploy" button at top of dashboard
- Select "Upload ZIP"
- Choose "Docker" as runtime
- Upload your ZIP file
- Configure exposed port
- Confirm deployment
Configuration
Set environment variables in the dashboard:
- Go to your service settings
- Navigate to "Environment Variables" tab
- Add variables (e.g.,
DATABASE_URL,REDIS_URL) - Save and redeploy
Learn more about environment variable management.
Best Practices
- Use multi-stage builds
- Minimize image size
- Use .dockerignore
- Pin base image versions