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