-
Notifications
You must be signed in to change notification settings - Fork 3
/
Dockerfile
46 lines (32 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
FROM nvidia/cuda:9.0-cudnn7-runtime-ubuntu16.04
RUN apt-get clean && apt-get update && apt-get install -y locales
RUN echo "en_US.UTF-8 UTF-8" > /etc/locale.gen && \
locale-gen
ENV LC_ALL en_US.UTF-8
ENV LANG en_US.UTF-8
ENV LANGUAGE en_US.UTF-8
ENV SHELL /bin/bash
RUN apt-get update && \
apt-get install -y curl bzip2 xvfb ffmpeg git libxrender1
WORKDIR /aaio
RUN curl -o ~/miniconda.sh -O https://repo.continuum.io/miniconda/Miniconda3-latest-Linux-x86_64.sh && \
chmod +x ~/miniconda.sh && \
~/miniconda.sh -b -p /opt/conda && \
rm ~/miniconda.sh && \
/opt/conda/bin/conda clean -ya && \
/opt/conda/bin/conda create -n python36 python=3.6 numpy
ENV PATH /opt/conda/envs/python36/bin:/opt/conda/envs/bin:$PATH
RUN pip install animalai
COPY agent.py /aaio/agent.py
COPY data /aaio/data
ENV HTTP_PROXY ""
ENV HTTPS_PROXY ""
ENV http_proxy ""
ENV https_proxy ""
########################################################################################################################
# YOUR COMMANDS GO HERE
# For example, if your agent requires the animalai-train library
# you can add the following (remove if not needed):
RUN pip install animalai-train
########################################################################################################################
CMD ["/bin/bash"]