abdullahalmunem's picture
model added
f81cfe2
raw
history blame
373 Bytes
FROM pytorch/pytorch:latest
WORKDIR /app
# Install dependencies
RUN apt-get update && apt-get install -y curl && rm -rf /var/lib/apt/lists/*
COPY requirements.txt ./
RUN pip install --no-cache-dir -r requirements.txt
# Copy your source code
COPY . .
# Expose port 7860 (Hugging Face Spaces default)
EXPOSE 7860
# Run both API and Gradio
CMD ["bash", "entrypoint.sh"]