carla/Util/Docker/Carla.Dockerfile

20 lines
511 B
Docker

FROM carla-prerequisites:latest
ARG GIT_BRANCH
USER carla
WORKDIR /home/carla
RUN cd /home/carla/ && \
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 && \
cd /home/carla/carla && \
./Update.sh && \
make CarlaUnrealEditor && \
make PythonAPI && \
make build.utils && \
make package && \
rm -r /home/carla/carla/Dist
WORKDIR /home/carla/carla