-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathDockerfile
More file actions
38 lines (32 loc) · 1.03 KB
/
Dockerfile
File metadata and controls
38 lines (32 loc) · 1.03 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
FROM centos:7
# Update centos and install basic dependencies
RUN yum update -y
RUN yum install centos-release-scl -y
RUN yum install \
gcc-c++ \
java-1.8.0-openjdk-devel \
git \
wget \
devtoolset-7 \
bzip2 \
maven \
-y
RUN scl enable devtoolset-7 bash
# Install cmake3
RUN wget https://github.com/Kitware/CMake/releases/download/v3.21.3/cmake-3.21.3-linux-x86_64.sh \
&& bash cmake-3.21.3-linux-x86_64.sh --prefix=/usr/local --exclude-subdir --skip-license
# Install anaconda3
RUN wget https://repo.anaconda.com/archive/Anaconda3-2019.03-Linux-x86_64.sh \
&& bash Anaconda3-2019.03-Linux-x86_64.sh -b && \
echo "export PATH="/root/anaconda3/bin:$PATH"" >> ~/.bashrc && \
/bin/bash -c "source ~/.bashrc"
ENV PATH /root/anaconda3/bin:$PATH
# Install Python libraries
RUN conda install pybind11 tensorflow \
&& pip install -U pip \
&& pip install ray[rllib]==1.3.0
# Create working directory
RUN mkdir -p app
WORKDIR app
# Set entry point
CMD ["mvn", "clean", "install", "-Djavacpp.platform=linux-x86_64"]