Open-Sora: Democratizing Efficient Video Production for All
Python
Optimizing the Docker deployment process (#456)
NijiNeko73eda722f84a
diff --git a/docker/Dockerfile b/Dockerfilesimilarity index 82%rename from docker/Dockerfilerename to Dockerfileindex 96632a1..5740556 100644--- a/docker/Dockerfile+++ b/Dockerfile@@ -5,6 +5,11 @@ LABEL org.opencontainers.image.source = "https://github.com/hpcaitech/Open-Sora"LABEL org.opencontainers.image.licenses = "Apache License 2.0"LABEL org.opencontainers.image.base.name = "docker.io/library/hpcaitech/pytorch-cuda:2.1.0-12.1.0"+# Set the working directory+WORKDIR /workspace/Open-Sora+# Copy the current directory contents into the container at /workspace/Open-Sora+COPY . .+# inatall library dependenciesRUN apt-get update && apt-get install ffmpeg libsm6 libxext6 -y@@ -18,6 +23,4 @@ RUN pip install -v --disable-pip-version-check --no-cache-dir --no-build-isolatiRUN pip install xformers --index-url https://download.pytorch.org/whl/cu121# install this project-RUN git clone https://github.com/hpcaitech/Open-Sora && \- cd Open-Sora && \- pip install -v .+RUN pip install -v .diff --git a/README.md b/README.mdindex 1c0f4de..42201f6 100644--- a/README.md+++ b/README.md@@ -203,13 +203,13 @@ pip install -v --disable-pip-version-check --no-cache-dir --no-build-isolation -Run the following command to build a docker image from Dockerfile provided.```bash-docker build -t opensora ./docker+docker build -t opensora .```Run the following command to start the docker container in interactive mode.```bash-docker run -ti --gpus all -v {MOUNT_DIR}:/data opensora+docker run -ti --gpus all -v .:/workspace/Open-Sora opensora```## Model Weightsdiff --git a/docs/zh_CN/README.md b/docs/zh_CN/README.mdindex 43753e3..f9df7ac 100644--- a/docs/zh_CN/README.md+++ b/docs/zh_CN/README.md@@ -175,13 +175,13 @@ pip install -v --disable-pip-version-check --no-cache-dir --no-build-isolation -运行以下命令从提供的Dockerfile 构建docker 镜像。```bash-docker build -t opensora ./docker+docker build -t opensora .```运行以下命令以交互模式启动docker容器。```bash-docker run -ti --gpus all -v {MOUNT_DIR}:/data opensora+docker run -ti --gpus all -v .:/workspace/Open-Sora opensora```## 模型权重