burme-subtitle-api / Dockerfile
openhands
Fix Dockerfile - copy files from root not backend/
6636197
raw
history blame contribute delete
515 Bytes
# Use official Python runtime as base image
FROM python:3.9-slim
# Set working directory
WORKDIR /app
# Install system dependencies
RUN apt-get update && apt-get install -y \
gcc \
&& rm -rf /var/lib/apt/lists/*
# 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 . .
# Expose port 7860 (Hugging Face requirement)
EXPOSE 7860
# Run the application
CMD ["python", "main.py"]