Suprhimp commited on
Commit
8bef74b
1 Parent(s): 9c1f215

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +10 -11
Dockerfile CHANGED
@@ -1,5 +1,5 @@
1
  FROM nvidia/cuda:11.7.1-base-ubuntu22.04
2
-
3
  WORKDIR /code
4
 
5
  COPY ./requirements.txt /code/requirements.txt
@@ -7,18 +7,17 @@ COPY ./requirements.txt /code/requirements.txt
7
  RUN apt-cache search mesa
8
  RUN apt-get update && apt-get install -y libgl1-mesa-glx libosmesa6
9
  RUN apt-get install -y python3-opengl
10
- RUN apt update && apt install -y python3 python3-pip git xvfb xorg-dev cmake
11
  RUN apt-get upgrade -y && apt-get install -y python3-pip python-is-python3 && rm -rf /var/lib/apt/lists/*
12
  RUN pip install -r requirements.txt
13
- RUN mkdir /projects
14
- RUN git clone https://github.com/glfw/glfw.git /projects/glfw
15
- RUN cd /projects/glfw
16
-
17
- WORKDIR /projects/glfw
18
- RUN cmake -DBUILD_SHARED_LIBS=ON .
19
- RUN make
20
- RUN export PYGLFW_LIBRARY=/projects/glfw/src/libglfw.so
21
- RUN export DISPLAY=:0.0
22
  # Run the command inside your image filesystem
23
  # RUN pip install --upgrade pip && \
24
  # pip install gym && \
 
1
  FROM nvidia/cuda:11.7.1-base-ubuntu22.04
2
+ ENV DISPLAY :0.0
3
  WORKDIR /code
4
 
5
  COPY ./requirements.txt /code/requirements.txt
 
7
  RUN apt-cache search mesa
8
  RUN apt-get update && apt-get install -y libgl1-mesa-glx libosmesa6
9
  RUN apt-get install -y python3-opengl
10
+ # RUN apt update && apt install -y python3 python3-pip git xvfb xorg-dev cmake
11
  RUN apt-get upgrade -y && apt-get install -y python3-pip python-is-python3 && rm -rf /var/lib/apt/lists/*
12
  RUN pip install -r requirements.txt
13
+ # RUN mkdir /projects
14
+ # RUN git clone https://github.com/glfw/glfw.git /projects/glfw
15
+ # RUN cd /projects/glfw
16
+
17
+ # WORKDIR /projects/glfw
18
+ # RUN cmake -DBUILD_SHARED_LIBS=ON .
19
+ # RUN make
20
+ # RUN export PYGLFW_LIBRARY=/projects/glfw/src/libglfw.so
 
21
  # Run the command inside your image filesystem
22
  # RUN pip install --upgrade pip && \
23
  # pip install gym && \