Todo-Web / Dockerfile
Claude Code - Backend Implementation Specialist
Add complete FastAPI Todo application with Docker support
1941764
raw
history blame contribute delete
500 Bytes
# Use Python 3.11 slim image
FROM python:3.11-slim
# Set working directory
WORKDIR /app
# Copy requirements first for better caching
COPY requirements.txt .
# Install Python dependencies
RUN pip install --no-cache-dir -r requirements.txt
# Copy application code
COPY src ./src
COPY api ./api
COPY alembic ./alembic
COPY alembic.ini .
COPY init_db.py .
COPY .env.example .env
# Expose port
EXPOSE 7860
# Run the application
CMD ["uvicorn", "src.main:app", "--host", "0.0.0.0", "--port", "7860"]