-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
45 lines (32 loc) · 1.38 KB
/
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
39
40
41
42
43
44
45
FROM ubuntu:22.04
RUN apt update -q && \
export DEBIAN_FRONTEND=noninteractive && \
apt install -y --no-install-recommends tar xz-utils \
libx11-6 libxcb1 libxau6 libgl1-mesa-dev \
xvfb dbus-x11 x11-utils libxkbcommon-x11-0 \
libavcodec-dev libavformat-dev libswscale-dev \
&& \
apt autoclean -y && apt autoremove -y && apt clean && \
rm -rf /var/lib/apt/lists/*
RUN apt update && apt install -y software-properties-common
RUN apt update && apt install -y git vim wget curl python3-pip
RUN apt update && apt install -y libgl1-mesa-glx libffi-dev
RUN apt upgrade -y libstdc++6
WORKDIR /opt
RUN wget https://www.coppeliarobotics.com/files/CoppeliaSim_Edu_V4_4_0_rev0_Ubuntu22_04.tar.xz
RUN tar -xf CoppeliaSim_Edu_V4_4_0_rev0_Ubuntu22_04.tar.xz
ENV COPPELIASIM_ROOT=/opt/CoppeliaSim_Edu_V4_4_0_rev0_Ubuntu22_04
ENV LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$COPPELIASIM_ROOT
ENV QT_QPA_PLATFORM_PLUGIN_PATH=$COPPELIASIM_ROOT
RUN mkdir robotics-rl
WORKDIR /opt/robotics-rl
RUN pip install virtualenv
RUN virtualenv venv
COPY requirements requirements
RUN . venv/bin/activate && pip install setuptools==66
RUN . venv/bin/activate && pip install -r requirements/dev.txt
RUN . venv/bin/activate && pip install git+https://github.com/stepjam/PyRep.git
COPY . .
ENV VENV=/opt/robotics-rl/venv/lib/python3.10/site-packages/
ENV HEADLESS=1
ENTRYPOINT ["bash", "scripts/run.sh"]