forked from cbschaff/gym-duckietown
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
49 lines (32 loc) · 955 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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
ARG AIDO_REGISTRY
#FROM ${AIDO_REGISTRY}/duckietown/aido-base-python3:daffy-amd64
FROM nvidia/opengl:1.2-glvnd-devel
RUN apt-get update -y && apt-get install -y \
freeglut3-dev \
python3-pip \
python3-numpy \
python3-scipy \
wget curl vim git \
&& \
rm -rf /var/lib/apt/lists/*
ARG PIP_INDEX_URL
ENV PIP_INDEX_URL=${PIP_INDEX_URL}
WORKDIR /gym-duckietown
COPY . .
#RUN pip install -v -e .
RUN pip3 install -U "pip>=20.2"
#RUN python3 -c "from gym_duckietown import *"
## first install the ones that do not change
COPY requirements.pin.txt .
RUN pip3 install --use-feature=2020-resolver -r requirements.pin.txt
#
COPY requirements.* ./
RUN cat requirements.* > .requirements.txt
RUN cat .requirements.txt
RUN pip3 install --use-feature=2020-resolver -r .requirements.txt
COPY . .
RUN pip3 install -v --no-deps .
RUN pip3 install pyglet==1.5.15
# pip install -v -e .
RUN pipdeptree
ENTRYPOINT [ "xvfb-run" ]