-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
38 lines (29 loc) · 993 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
FROM research-xavier:l4t-r35.5.0
ARG USERNAME=sauce
ARG PASS=password
# create a non-root user
RUN useradd -m ${USERNAME} && \
echo "${USERNAME}:${PASS}" | chpasswd && \
usermod --shell /bin/bash ${USERNAME} && \
usermod -aG sudo ${USERNAME}
# cleanup
RUN apt update
RUN apt install -y x11-apps
# set user
USER ${USERNAME}
# gui forwarding
RUN ln -s /dot.Xauthority /home/${USERNAME}/.Xauthority
# install dependencies
RUN pip install --upgrade pip
RUN pip install torch
RUN pip install diffusers einops efficientnet_pytorch onnx hydra-core omegaconf dill pycuda "numpy<=1.23"
# clone the diffusion policy repo and install it
WORKDIR /home/${USERNAME}
RUN git config --global http.postBuffer 1048576000
RUN git clone https://github.com/real-stanford/diffusion_policy
RUN pip install -e ./diffusion_policy
# go back to the workspace folder
WORKDIR /home/${USERNAME}/workspace
# testing purposes
RUN pip install notebook
# RUN export PATH=$PATH:/home/${USERNAME}/.local/bin/