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

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +7 -14
Dockerfile CHANGED
@@ -26,27 +26,20 @@ RUN git clone --branch main https://github.com/ack00gar/FunGen-AI-Powered-Funscr
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"]
 
26
  git config user.email "bot@example.com" && \
27
  git config user.name "Bot"
28
 
29
+ WORKDIR /FunGen
 
 
 
 
30
 
31
+ RUN pip install -r cuda.requirements.txt
 
32
 
33
+ RUN pip install tensorrt torch-tensorrt --extra-index-url https://download.pytorch.org/whl/nightly/cu128 || true
34
 
35
+ RUN pip install gradio==4.16.0 huggingface-hub==0.19.3 pydantic>=2.0
 
 
 
 
36
 
37
+ RUN mkdir -p /tmp/uploads /tmp/outputs /app/models
38
 
39
  WORKDIR /app
40
 
41
  COPY app.py /app/app.py
42
 
43
+ ENV FUNGEN_SKIP_CHECK=1
44
+
45
  CMD ["python", "/app/app.py"]