Teamtheo613 commited on
Commit
d4b7be3
·
verified ·
1 Parent(s): b7c6c0f

Create Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +52 -0
Dockerfile ADDED
@@ -0,0 +1,52 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ FROM nvidia/cuda:12.8.0-runtime-ubuntu22.04
2
+
3
+ ENV DEBIAN_FRONTEND=noninteractive
4
+ ENV PYTHONUNBUFFERED=1
5
+
6
+ RUN apt-get update && apt-get install -y \
7
+ python3.11 \
8
+ python3.11-venv \
9
+ python3-pip \
10
+ git \
11
+ wget \
12
+ curl \
13
+ ffmpeg \
14
+ libsm6 \
15
+ libxext6 \
16
+ libxrender-dev \
17
+ libgomp1 \
18
+ build-essential \
19
+ && rm -rf /var/lib/apt/lists/*
20
+
21
+ RUN update-alternatives --install /usr/bin/python python /usr/bin/python3.11 1 && \
22
+ update-alternatives --install /usr/bin/python3 python3 /usr/bin/python3.11 1
23
+
24
+ RUN git clone --branch main https://github.com/ack00gar/FunGen-AI-Powered-Funscript-Generator.git FunGen && \
25
+ cd FunGen && \
26
+ git config user.email "bot@example.com" && \
27
+ git config user.name "Bot"
28
+
29
+ # Patch FunGen to disable dependency check
30
+ RUN cd FunGen && \
31
+ echo "def check_application_dependencies():" > core/application_dependencies_patch.py && \
32
+ echo " pass" >> core/application_dependencies_patch.py && \
33
+ sed -i '1s/^/from core.application_dependencies_patch import check_application_dependencies as _noop\nimport core.application_dependencies\ncore.application_dependencies.check_application_dependencies = _noop\n/' main.py
34
+
35
+ RUN pip install -r FunGen/cuda.requirements.txt && \
36
+ pip install tensorrt
37
+
38
+ RUN pip install gradio==4.26.0 gradio-client==0.15.1
39
+
40
+ RUN mkdir -p /tmp/uploads /tmp/outputs /app/models
41
+
42
+ WORKDIR /app/FunGen
43
+
44
+ RUN pip install -r core.requirements.txt
45
+
46
+ RUN python -m pip install --upgrade pip setuptools wheel
47
+
48
+ WORKDIR /app
49
+
50
+ COPY app.py /app/app.py
51
+
52
+ CMD ["python", "/app/app.py"]