2019-07-09 18:44:03 +08:00
|
|
|
FROM carla-prerequisites:latest
|
|
|
|
|
|
|
|
ARG GIT_BRANCH
|
|
|
|
|
2021-07-28 02:34:41 +08:00
|
|
|
USER carla
|
|
|
|
WORKDIR /home/carla
|
2019-07-09 18:44:03 +08:00
|
|
|
|
2021-07-28 02:34:41 +08:00
|
|
|
RUN cd /home/carla/ && \
|
2019-07-09 18:44:03 +08:00
|
|
|
if [ -z ${GIT_BRANCH+x} ]; then git clone --depth 1 https://github.com/carla-simulator/carla.git; \
|
|
|
|
else git clone --depth 1 --branch $GIT_BRANCH https://github.com/carla-simulator/carla.git; fi && \
|
2021-07-28 02:34:41 +08:00
|
|
|
cd /home/carla/carla && \
|
2019-07-09 18:44:03 +08:00
|
|
|
./Update.sh && \
|
|
|
|
make CarlaUE4Editor && \
|
2019-12-04 01:27:11 +08:00
|
|
|
make PythonAPI && \
|
|
|
|
make build.utils && \
|
2019-07-09 18:44:03 +08:00
|
|
|
make package && \
|
2021-07-28 02:34:41 +08:00
|
|
|
rm -r /home/carla/carla/Dist
|
2019-07-09 18:44:03 +08:00
|
|
|
|
2021-07-28 02:34:41 +08:00
|
|
|
WORKDIR /home/carla/carla
|