-
Notifications
You must be signed in to change notification settings - Fork 1
/
Dockerfile
37 lines (29 loc) · 1.11 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
# Definition of Submission container
# We start from tensorflow-gpu image
FROM duckietown/pytorch-v0.4.1-py27-cuda9.0
# DO NOT MODIFY: your submission won't run if you do
RUN apt-get update -y && apt-get install -y --no-install-recommends \
gcc \
libc-dev\
git \
bzip2 \
python-tk && \
rm -rf /var/lib/apt/lists/*
# let's create our workspace, we don't want to clutter the container
RUN rm -r /workspace; mkdir /workspace
# here, we install the requirements, some requirements come by default
# you can add more if you need to in requirements.txt
COPY requirements.txt /workspace
RUN pip install -r /workspace/requirements.txt
# let's copy all our solution files to our workspace
# if you have more file use the COPY command to move them to the workspace
COPY solution.py /workspace
COPY models /workspace/models
COPY model.py /workspace
COPY wrappers.py /workspace
# we make the workspace our working directory
WORKDIR /workspace
# DO NOT MODIFY: your submission won't run if you do
ENV DUCKIETOWN_SERVER=evaluator
# let's see what you've got there...
CMD python solution.py