myanmar-ghost / Dockerfile
amkyawdev's picture
Add deployment files
8f6910f verified
Raw
History Blame Contribute Delete
568 Bytes
FROM python:3.10-slim
WORKDIR /app
# Install system dependencies
RUN apt-get update && apt-get install -y \
libsndfile1 \
ffmpeg \
git \
&& rm -rf /var/lib/apt/lists/*
# Copy requirements first for caching
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
# Copy application code
COPY src/ ./src/
COPY configs/ ./configs/
COPY deployment/ ./deployment/
# Set environment variables
ENV PYTHONPATH=/app
ENV PYTHONUNBUFFERED=1
# Expose port for API
EXPOSE 8000
# Run the application
CMD ["python", "deployment/api/app.py"]