File size: 1,137 Bytes
d4b7be3
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
7ca95b8
d4b7be3
7ca95b8
d4b7be3
7ca95b8
d4b7be3
7ca95b8
d4b7be3
7ca95b8
d4b7be3
 
 
 
 
7ca95b8
 
d4b7be3
9050b09
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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
FROM nvidia/cuda:12.8.0-runtime-ubuntu22.04

ENV DEBIAN_FRONTEND=noninteractive
ENV PYTHONUNBUFFERED=1

RUN apt-get update && apt-get install -y \
    python3.11 \
    python3.11-venv \
    python3-pip \
    git \
    wget \
    curl \
    ffmpeg \
    libsm6 \
    libxext6 \
    libxrender-dev \
    libgomp1 \
    build-essential \
    && rm -rf /var/lib/apt/lists/*

RUN update-alternatives --install /usr/bin/python python /usr/bin/python3.11 1 && \
    update-alternatives --install /usr/bin/python3 python3 /usr/bin/python3.11 1

RUN git clone --branch main https://github.com/ack00gar/FunGen-AI-Powered-Funscript-Generator.git FunGen && \
    cd FunGen && \
    git config user.email "bot@example.com" && \
    git config user.name "Bot"

WORKDIR /FunGen

RUN pip install -r cuda.requirements.txt

RUN pip install tensorrt torch-tensorrt --extra-index-url https://download.pytorch.org/whl/nightly/cu128 || true

RUN pip install gradio==4.16.0 huggingface-hub==0.19.3 pydantic>=2.0

RUN mkdir -p /tmp/uploads /tmp/outputs /app/models

WORKDIR /app

COPY app.py /app/app.py

ENV FUNGEN_SKIP_CHECK=1

CMD ["python", "/app/app.py"]