-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
39 lines (30 loc) · 1.13 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
FROM anibali/pytorch:1.5.0-cuda10.2
USER root
# RUN conda env create -f environment.yml
# RUN apt-get install -y gnupg2
# RUN echo "deb http://us.archive.ubuntu.com/ubuntu/ bionic main" >> /etc/apt/sources.list
# RUN apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 3B4FE6ACC0B21F32
# RUN apt-get update
# RUN mkdir /home/tsad
# WORKDIR /home/tsad
COPY requirements.txt requirements.txt
RUN apt-get update
RUN pip install -r requirements.txt
RUN apt-get install ffmpeg libsm6 libxext6 -y
RUN apt-get install libjpeg-turbo8 -y
# Copy wheels and install
COPY wheels/gym_carla-0.1.0-py3-none-any.whl gym_carla-0.1.0-py3-none-any.whl
RUN pip install gym_carla-0.1.0-py3-none-any.whl
# Copy code
WORKDIR /home/tsad
COPY . .
COPY carla_egg/carla-0.9.11-py3.7-linux-x86_64.egg /home/tsad/carla_egg/
#COPY scripts/ /home/tsad/scripts/
#COPY models/ /home/tsad/models/
#COPY utils/ /home/tsad/utils/
RUN mkdir /home/tsad/dataset
WORKDIR /home/tsad/scripts
# Set some envirnonment variables
ENV PYTHONPATH "${PYTHONPATH}:/home/tsad"
ENV PYTHONPATH "${PYTHONPATH}:/home/tsad/carla_egg/carla-0.9.11-py3.7-linux-x86_64.egg"
# RUN python scripts/train.py