2018-06-07 01:49:58 +08:00
|
|
|
# Make sure drivers are >= 390
|
2019-02-28 19:52:34 +08:00
|
|
|
# docker run -p 2000-2002:2000-2002 --runtime=nvidia -e NVIDIA_VISIBLE_DEVICES=ID carla:latest ./CarlaUE4.sh
|
2019-07-02 23:40:53 +08:00
|
|
|
# -carla-rpc-port=2000 -carla-streaming-port=2001
|
2018-06-07 01:49:58 +08:00
|
|
|
|
2019-12-05 07:16:16 +08:00
|
|
|
FROM nvidia/vulkan:1.1.121-cuda-10.1-alpha
|
2018-06-07 01:49:58 +08:00
|
|
|
|
2019-02-28 19:52:34 +08:00
|
|
|
RUN packages='libsdl2-2.0' \
|
|
|
|
&& apt-get update && apt-get install -y $packages --no-install-recommends \
|
|
|
|
&& rm -rf /var/lib/apt/lists/*
|
2018-06-07 01:49:58 +08:00
|
|
|
|
|
|
|
RUN useradd -m carla
|
|
|
|
|
2019-02-28 19:52:34 +08:00
|
|
|
COPY --chown=carla:carla . /home/carla
|
2018-06-07 01:49:58 +08:00
|
|
|
|
|
|
|
USER carla
|
|
|
|
WORKDIR /home/carla
|
|
|
|
|
|
|
|
ENV SDL_VIDEODRIVER=offscreen
|
|
|
|
|
2019-07-02 23:40:53 +08:00
|
|
|
CMD /bin/bash CarlaUE4.sh
|