carla/Util/Docker/Carla.Dockerfile

20 lines
508 B
Docker
Raw Normal View History

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 && \
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