Spaces:
Build error
Build error
File size: 552 Bytes
e1ef9b6 830559c e1ef9b6 830559c e1ef9b6 830559c e1ef9b6 830559c e1ef9b6 830559c e1ef9b6 830559c e1ef9b6 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 | # Use Python base image (with CUDA if GPU needed)
FROM python:3.11-slim
# Install system dependencies
RUN apt-get update && apt-get install -y \
build-essential \
cmake \
wget \
git \
&& rm -rf /var/lib/apt/lists/*
# Set working directory
WORKDIR /app
# Copy your model and code into the container
COPY . /app
# Install Python dependencies
RUN pip install --no-cache-dir --upgrade pip
RUN pip install --no-cache-dir -r requirements.txt
# Expose port for HF Space
EXPOSE 7860
# Command to run your app
CMD ["python", "app.py"]
|