stt-gpu-service-python-v4 / Dockerfile_moshi
Peter Michael Gits
Fix Dockerfile directory permissions - create /app as root before switching users
26096f4
raw
history blame contribute delete
595 Bytes
FROM python:3.10-slim
WORKDIR /app
# Install system dependencies needed for Moshi
RUN apt-get update && apt-get install -y \
curl \
git \
&& rm -rf /var/lib/apt/lists/*
# Copy requirements and install Python dependencies
COPY requirements.txt .
# Install Moshi and dependencies
RUN pip install --no-cache-dir -r requirements.txt
# Copy application
COPY app.py .
# Expose port
EXPOSE 7860
# Health check
HEALTHCHECK --interval=30s --timeout=30s --start-period=180s --retries=3 \
CMD curl -f http://localhost:7860/health || exit 1
# Run application
CMD ["python", "app.py"]