camenduru commited on
Commit
f6ab7ac
1 Parent(s): 3714d8a

Create Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +25 -0
Dockerfile ADDED
@@ -0,0 +1,25 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ FROM runpod/pytorch:2.2.1-py3.10-cuda12.1.1-devel-ubuntu22.04
2
+ WORKDIR /content
3
+ ENV PATH="/home/camenduru/.local/bin:${PATH}"
4
+ RUN adduser --disabled-password --gecos '' camenduru && \
5
+ adduser camenduru sudo && \
6
+ echo '%sudo ALL=(ALL) NOPASSWD:ALL' >> /etc/sudoers && \
7
+ chown -R camenduru:camenduru /content && \
8
+ chmod -R 777 /content && \
9
+ chown -R camenduru:camenduru /home && \
10
+ chmod -R 777 /home
11
+
12
+ RUN apt update -y && add-apt-repository -y ppa:git-core/ppa && apt update -y && apt install -y aria2 git git-lfs unzip ffmpeg
13
+
14
+ USER camenduru
15
+
16
+ RUN pip install -q opencv-python imageio imageio-ffmpeg ffmpeg-python av xformers==0.0.25 runpod \
17
+ pytorch-lightning==2.1.2 gradio==3.50.2 einops omegaconf torchmetrics webdataset accelerate tensorboard \
18
+ PyMCubes trimesh rembg transformers diffusers==0.20.2 bitsandbytes imageio[ffmpeg] xatlas plyfile \
19
+ git+https://github.com/NVlabs/nvdiffrast jax==0.4.19 jaxlib==0.4.19 ninja
20
+
21
+ RUN GIT_LFS_SKIP_SMUDGE=1 git clone https://github.com/TencentARC/InstantMesh /content/InstantMesh
22
+
23
+ COPY ./worker_runpod.py /content/InstantMesh/worker_runpod.py
24
+ WORKDIR /content/InstantMesh
25
+ CMD python worker_runpod.py