client / Dockerfile
P01yH3dr0n's picture
launch
774fe36
Raw
History Blame Contribute Delete
509 Bytes
FROM python:3.11-slim
# System dependencies for Pillow and onnxruntime
RUN apt-get update && apt-get install -y --no-install-recommends \
gcc \
libjpeg-dev \
libpng-dev \
libwebp-dev \
&& rm -rf /var/lib/apt/lists/*
WORKDIR /app
# Install Python dependencies
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
# Copy application code
COPY . .
# Create data directories
RUN mkdir -p data remote_images
# Expose port
EXPOSE 7860
# Run
CMD ["python", "main.py"]