Shazaaly
docker and run.sh
ea7ba48
raw
history blame
438 Bytes
# Use official lightweight Python image
FROM python:3.10-slim
# Set environment variables
ENV HF_HOME=/data
ENV PYTHONUNBUFFERED=1
# Create Hugging Face hub directory
RUN mkdir -p /data/hub
# Set working directory
WORKDIR /app
# Install dependencies
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
# Copy code
COPY . .
# Ensure run.sh is executable
RUN chmod +x run.sh
# Default command
CMD ["./run.sh"]