mirror of
https://github.com/KwaiVGI/LivePortrait.git
synced 2024-12-22 20:42:38 +00:00
🐳 [feat] Enhance Docker setup for LivePortrait
- Updated the base image to NVIDIA CUDA 12.0.1 and installed essential system packages. - Upgraded pip and installed required Python libraries from requirements.txt. - Set the Asia/Tokyo timezone and specified the working directory to /LivePortrait.
This commit is contained in:
parent
32788c61e6
commit
8876f16ea5
@ -4,7 +4,7 @@ FROM nvidia/cuda:12.0.1-cudnn8-runtime-ubuntu22.04
|
|||||||
|
|
||||||
WORKDIR /LivePortrait
|
WORKDIR /LivePortrait
|
||||||
|
|
||||||
# # 必要なシステムパッケージをインストールする
|
# Install necessary system packages
|
||||||
RUN apt-get update && apt-get install -y \
|
RUN apt-get update && apt-get install -y \
|
||||||
git \
|
git \
|
||||||
cmake \
|
cmake \
|
||||||
@ -14,23 +14,23 @@ RUN apt-get update && apt-get install -y \
|
|||||||
libglib2.0-0 \
|
libglib2.0-0 \
|
||||||
libx11-dev
|
libx11-dev
|
||||||
|
|
||||||
# システムレベルで必要なパッケージをインストールします
|
# Install required system-level packages
|
||||||
RUN apt-get update && apt-get install -y python3-pip python3-dev
|
RUN apt-get update && apt-get install -y python3-pip python3-dev
|
||||||
|
|
||||||
# pip をアップグレードする
|
# Upgrade pip
|
||||||
RUN pip install --upgrade pip
|
RUN pip install --upgrade pip
|
||||||
|
|
||||||
# 必要な Python パッケージをインストールする
|
# Install required Python packages
|
||||||
COPY requirements.txt .
|
COPY requirements.txt .
|
||||||
RUN pip install -r requirements.txt
|
RUN pip install -r requirements.txt
|
||||||
|
|
||||||
# タイムゾーンを設定する
|
# Set the timezone
|
||||||
# 例としてAsia/Tokyoを設定
|
# Example: Set to Asia/Tokyo
|
||||||
RUN ln -sf /usr/share/zoneinfo/Asia/Tokyo /etc/localtime
|
RUN ln -sf /usr/share/zoneinfo/Asia/Tokyo /etc/localtime
|
||||||
# タイムゾーンを設定
|
# Set timezone
|
||||||
ENV TZ Asia/Tokyo
|
ENV TZ Asia/Tokyo
|
||||||
|
|
||||||
RUN apt-get install libopencv-dev -y
|
RUN apt-get install libopencv-dev -y
|
||||||
|
|
||||||
# 作業ディレクトリを設定する
|
# Set the working directory
|
||||||
WORKDIR /LivePortrait
|
WORKDIR /LivePortrait
|
||||||
|
Loading…
Reference in New Issue
Block a user