-
Notifications
You must be signed in to change notification settings - Fork 10
/
Dockerfile.gpu
43 lines (34 loc) · 858 Bytes
/
Dockerfile.gpu
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
FROM tensorflow/tensorflow:latest-gpu
MAINTAINER RLgraph <[email protected]>
# Install dependencies
RUN apt-get update && apt-get install -y --no-install-recommends \
build-essential \
curl \
libfreetype6-dev \
libpng12-dev \
libzmq3-dev \
pkg-config \
python \
python-dev \
rsync \
software-properties-common \
cmake \
swig \
zlib1g-dev \
unzip \
git \
&& \
apt-get clean && \
rm -rf /var/lib/apt/lists/*
# Install pip
RUN curl -O https://bootstrap.pypa.io/get-pip.py && \
python get-pip.py && \
rm get-pip.py
WORKDIR /rl-benchmark
ADD . .
RUN rm -rf *.png _cmd_*.txt
# Add dependencies
RUN pip install -r requirements_benchmark_gpu.txt
RUN pip install -e .
RUN [ -d benchmarks ] || mkdir benchmarks && rm -rf benchmarks/*
ENTRYPOINT ["python", "scripts/benchmark_gym.py"]