-
Notifications
You must be signed in to change notification settings - Fork 49
/
Dockerfile
34 lines (29 loc) · 1015 Bytes
/
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
FROM cyberbotics/webots:latest
ARG branch
ARG conda
# Install Ubuntu libraries
RUN apt-get update && \
apt-get install -y git pip apt-utils
# Install miniconda
SHELL ["/bin/bash", "-c"]
RUN if [[ -z "$conda" ]]; then echo build without conda ;\
else\
wget --quiet https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh -O ~/miniconda.sh && \
/bin/bash ~/miniconda.sh -b -p /opt/conda ; fi
SHELL ["/bin/bash", "-c"]
ENV PATH=${conda:+/opt/conda/bin}:$PATH
# Install deepbots
RUN python3 -m pip install --upgrade pip
RUN pip install --upgrade pip
RUN pip install gym==0.21.0
RUN if [ $branch = "main" ]; then pip install deepbots ; \
else \
if [ $branch = "dev" ]; then \
pip install git+https://github.com/aidudezzz/deepbots.git ; \
else if [[ $branch == *"deepbots"* ]]; then \
pip install --index-url https://pypi.org/simple/ $branch ; \
fi ; \
fi ; \
fi
WORKDIR /workspace
RUN chmod -R a+w /workspace