-
Notifications
You must be signed in to change notification settings - Fork 11
/
Dockerfile
48 lines (44 loc) · 1.31 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
46
47
48
# Based on mujoco-py's Dockerfile, but with the following changes:
# - Slightly changed nvidia stuff.
# - Uses Conda Python 3.7 instead of Python 3.6.
# The Conda bits are based on https://hub.docker.com/r/continuumio/miniconda3/dockerfile
FROM nvidia/cuda:10.1-cudnn8-runtime-ubuntu18.04
RUN apt-get update -q \
&& DEBIAN_FRONTEND=noninteractive apt-get install -y \
curl \
git \
libgl1-mesa-dev \
libgl1-mesa-glx \
libglew-dev \
libosmesa6-dev \
software-properties-common \
net-tools \
unzip \
virtualenv \
wget \
xpra \
xserver-xorg-dev \
libxrandr2 \
libxss1 \
libxcursor1 \
libxcomposite1 \
libasound2 \
libxi6 \
libxtst6 \
libegl1-mesa \
xvfb \
gcc \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/*
ENV LANG=C.UTF-8 LC_ALL=C.UTF-8
# Install Conda and make it the default Python
ENV PATH /opt/conda/bin:$PATH
RUN wget https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh -O /root/conda.sh || true \
&& bash /root/conda.sh -b -p /opt/conda || true \
&& rm /root/conda.sh
RUN conda update -n base -c defaults conda \
&& conda install -c anaconda python=3.6 \
&& conda clean -ay
# This is useful for making the X server work (but will break if the X server is
# not started on display :0)
ENV DISPLAY=:0