This repository was archived by the owner on Jun 17, 2025. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
56 lines (42 loc) · 1.22 KB
/
Dockerfile
File metadata and controls
56 lines (42 loc) · 1.22 KB
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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
FROM ubuntu:20.04
ARG UID
ARG GID
# here I defined same UID/GID as in my system (`id` from bash to check)
RUN addgroup --gid ${GID} --system oversir \
&& adduser --uid ${UID} --system \
--ingroup oversir \
--home /home/oversir \
--shell /bin/bash oversir
RUN chown -R oversir:oversir /home/oversir
ARG DEBIAN_FRONTEND=noninteractive
RUN ln -snf /usr/share/zoneinfo/Etc/UTC /etc/localtime && echo "Etc/UTC" > /etc/timezone
RUN DEBIAN_FRONTEND=noninteractive TZ=Etc/UTC apt-get update && \
DEBIAN_FRONTEND=noninteractive TZ=Etc/UTC apt-get install -y tzdata && \
rm -rf /var/lib/apt/lists/*
RUN apt-get update && apt-get install -y \
wget \
curl \
sudo \
nano \
python3 \
python3-pip \
xorg \
x11-apps \
xserver-xorg-core \
git \
&& rm -rf /var/lib/apt/lists/*
ENV DISPLAY=:0
ENV XAUTHORITY=/tmp/.Xauthority
RUN usermod -aG sudo oversir
RUN echo 'oversir ALL=(ALL) NOPASSWD:ALL' >> /etc/sudoers
RUN pip3 install \
mujoco \
pygame \
casadi \
meshcat \
numpy \
matplotlib
USER oversir
RUN echo 'export PATH="$PATH:/home/oversir/humanoid_wp/unitree_sdk2_python"' >> /home/oversir/.bashrc
WORKDIR /home/oversir
CMD ["/bin/bash"]