CoolFace
Apppublic

developer-lunark/kaidol-thinking-experiment

sourceHugging Faceapache-2.0updated 8mo agoView on Hugging Face
0likes
Dockerfile46 linesDownload Raw Back to root
1FROM nvidia/cuda:12.1.0-runtime-ubuntu22.042 3WORKDIR /app4 5# Fix environment variables6ENV OMP_NUM_THREADS=47ENV MKL_NUM_THREADS=48ENV DEBIAN_FRONTEND=noninteractive9ENV PATH="/usr/local/bin:$PATH"10 11# Install Python 3.11 and pip properly12RUN apt-get update && apt-get install -y \13    software-properties-common \14    && add-apt-repository -y ppa:deadsnakes/ppa \15    && apt-get update \16    && apt-get install -y \17    python3.11 \18    python3.11-venv \19    python3.11-distutils \20    curl \21    git \22    && rm -rf /var/lib/apt/lists/* \23    && ln -sf /usr/bin/python3.11 /usr/bin/python \24    && ln -sf /usr/bin/python3.11 /usr/bin/python3 \25    && curl -sS https://bootstrap.pypa.io/get-pip.py | python3.1126 27# Copy requirements and install28COPY requirements.txt .29RUN pip install --no-cache-dir -r requirements.txt30 31# Copy app32COPY . .33 34# Create user for HF Space35RUN useradd -m -u 1000 user36USER user37 38# Set HF cache directory39ENV HF_HOME=/tmp/huggingface40 41# Expose port42EXPOSE 786043 44# Run app45CMD ["python", "app.py"]46