mirror of
https://github.com/facefusion/facefusion-docker.git
synced 2026-04-23 17:45:56 +02:00
Modernize dockerfiles
This commit is contained in:
+2
-1
@@ -1,7 +1,8 @@
|
||||
FROM python:3.10
|
||||
FROM python:3.12
|
||||
|
||||
ARG FACEFUSION_VERSION=3.0.1
|
||||
ENV GRADIO_SERVER_NAME=0.0.0.0
|
||||
ENV PIP_BREAK_SYSTEM_PACKAGES=1
|
||||
|
||||
WORKDIR /facefusion
|
||||
|
||||
|
||||
+3
-2
@@ -1,12 +1,13 @@
|
||||
FROM nvidia/cuda:12.4.1-cudnn-runtime-ubuntu22.04
|
||||
FROM nvidia/cuda:12.6.2-cudnn-runtime-ubuntu24.04
|
||||
|
||||
ARG FACEFUSION_VERSION=3.0.1
|
||||
ENV GRADIO_SERVER_NAME=0.0.0.0
|
||||
ENV PIP_BREAK_SYSTEM_PACKAGES=1
|
||||
|
||||
WORKDIR /facefusion
|
||||
|
||||
RUN apt-get update
|
||||
RUN apt-get install python3.10 -y
|
||||
RUN apt-get install python3.12 -y
|
||||
RUN apt-get install python-is-python3 -y
|
||||
RUN apt-get install pip -y
|
||||
RUN apt-get install git -y
|
||||
|
||||
+3
-2
@@ -1,12 +1,13 @@
|
||||
FROM rocm/dev-ubuntu-22.04:6.2
|
||||
FROM rocm/dev-ubuntu-24.04:6.2
|
||||
|
||||
ARG FACEFUSION_VERSION=3.0.1
|
||||
ENV GRADIO_SERVER_NAME=0.0.0.0
|
||||
ENV PIP_BREAK_SYSTEM_PACKAGES=1
|
||||
|
||||
WORKDIR /facefusion
|
||||
|
||||
RUN apt-get update
|
||||
RUN apt-get install python3.10 -y
|
||||
RUN apt-get install python3.12 -y
|
||||
RUN apt-get install python-is-python3 -y
|
||||
RUN apt-get install pip -y
|
||||
RUN apt-get install git -y
|
||||
|
||||
+4
-3
@@ -1,12 +1,14 @@
|
||||
FROM nvidia/cuda:12.4.1-cudnn-runtime-ubuntu22.04
|
||||
FROM nvidia/cuda:12.6.2-cudnn-runtime-ubuntu24.04
|
||||
|
||||
ARG FACEFUSION_VERSION=3.0.1
|
||||
ENV GRADIO_SERVER_NAME=0.0.0.0
|
||||
ENV PIP_BREAK_SYSTEM_PACKAGES=1
|
||||
ENV LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/lib/python3.12/dist-packages/tensorrt_libs
|
||||
|
||||
WORKDIR /facefusion
|
||||
|
||||
RUN apt-get update
|
||||
RUN apt-get install python3.10 -y
|
||||
RUN apt-get install python3.12 -y
|
||||
RUN apt-get install python-is-python3 -y
|
||||
RUN apt-get install pip -y
|
||||
RUN apt-get install git -y
|
||||
@@ -16,4 +18,3 @@ RUN pip install tensorrt==10.5.0 --extra-index-url https://pypi.nvidia.com
|
||||
|
||||
RUN git clone https://github.com/facefusion/facefusion.git --branch ${FACEFUSION_VERSION} --single-branch .
|
||||
RUN python install.py --onnxruntime cuda --skip-conda
|
||||
|
||||
|
||||
@@ -15,4 +15,5 @@ services:
|
||||
reservations:
|
||||
devices:
|
||||
- driver: nvidia
|
||||
count: all
|
||||
capabilities: [ gpu, video ]
|
||||
|
||||
@@ -15,4 +15,5 @@ services:
|
||||
reservations:
|
||||
devices:
|
||||
- driver: rocm
|
||||
count: all
|
||||
capabilities: [ gpu, video ]
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
services:
|
||||
facefusion-cuda:
|
||||
facefusion-tensorrt:
|
||||
build:
|
||||
context: .
|
||||
dockerfile: Dockerfile.tensorrt
|
||||
@@ -15,4 +15,5 @@ services:
|
||||
reservations:
|
||||
devices:
|
||||
- driver: nvidia
|
||||
count: all
|
||||
capabilities: [ gpu, video ]
|
||||
|
||||
Reference in New Issue
Block a user