forked from fubarlabs/foocars
-
Notifications
You must be signed in to change notification settings - Fork 0
/
car.dockerfile
40 lines (27 loc) · 955 Bytes
/
car.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 --platform=linux/arm64/v8 kumatea/tensorflow:2.4.1-py39 AS base
WORKDIR foocars
ENV READTHEDOCS=True
#TODO: use the get poetry install script
RUN pip3 install --upgrade pip poetry
RUN poetry config virtualenvs.create false
# From the base get the cargenerator
FROM base AS cargenerator
COPY ./cargenerator /foocars/cargenerator
COPY ./tests /foocars/tests
WORKDIR /foocars/cargenerator
RUN poetry install
RUN poetry run generatecar --name chiaracer --output_dir /foocars/cars/
VOLUME ["/foocars/cars/chiaracer"]
FROM base AS carservices
RUN apt update && apt install -y \
gcc libhdf5-dev vim
RUN pip install h5py platformio
COPY ./cars/carservices /foocars/cars/carservices
COPY ./tests /foocars/tests
WORKDIR /foocars/cars/carservices/
RUN poetry install
COPY --from=cargenerator /foocars/cars/chiaracer /foocars/cars/chiaracer
#ENTRYPOINT ["python3"]
#ENTRYPOINT ["/bin/bash"]
##CMD ["/usr/local/bin/car_runner"]
CMD ["/bin/bash"]