Skip to content

Commit ada75f9

Browse files
joel-mbBlyron
authored andcommitted
Release dockerfile updated
1 parent c664199 commit ada75f9

File tree

1 file changed

+15
-10
lines changed

1 file changed

+15
-10
lines changed

Util/Docker/Release.Dockerfile

+15-10
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,17 @@
1+
ARG UBUNTU_DISTRO="22.04"
12

2-
# run the docker container as:
3-
#
4-
# sudo -E docker run --rm --gpus all -it --net=host carla:latest /bin/bash
3+
FROM ubuntu:${UBUNTU_DISTRO}
54

6-
FROM nvidia/vulkan:1.1.121-cuda-10.1--ubuntu18.04
5+
RUN packages='libsdl2-2.0 xserver-xorg libvulkan1 libomp5' \
6+
&& apt-get update \
7+
&& DEBIAN_FRONTEND=noninteractive apt-get install -y $packages \
8+
&& rm -rf /var/lib/apt/lists/*
79

8-
RUN apt-key adv --fetch-keys "https://developer.download.nvidia.com/compute/cuda/repos/ubuntu1804/x86_64/3bf863cc.pub"
9-
10-
RUN packages='libsdl2-2.0 xserver-xorg libvulkan1 libomp5' && apt-get update && DEBIAN_FRONTEND=noninteractive apt-get install -y $packages --no-install-recommends
10+
# Install the `xdg-user-dir` tool so the Unreal Engine can use it to locate the user's Documents directory
11+
RUN packages='xdg-user-dirs' \
12+
&& apt-get update \
13+
&& DEBIAN_FRONTEND=noninteractive apt-get install -y $packages \
14+
&& rm -rf /var/lib/apt/lists/*
1115

1216
RUN useradd -m carla
1317

@@ -16,6 +20,7 @@ COPY --chown=carla:carla . /home/carla
1620
USER carla
1721
WORKDIR /home/carla
1822

19-
# you can also run CARLA in offscreen mode with -RenderOffScreen
20-
# CMD /bin/bash CarlaUnreal.sh -RenderOffScreen
21-
CMD /bin/bash CarlaUnreal.sh
23+
ENV SDL_VIDEODRIVER="x11"
24+
25+
# You can also run CARLA in offscreen mode with -RenderOffScreen
26+
CMD ["/bin/bash", "CarlaUnreal.sh"]

0 commit comments

Comments
 (0)