Skip to content

Commit

Permalink
Release dockerfile updated
Browse files Browse the repository at this point in the history
  • Loading branch information
joel-mb authored and Blyron committed Dec 18, 2024
1 parent c664199 commit ada75f9
Showing 1 changed file with 15 additions and 10 deletions.
25 changes: 15 additions & 10 deletions Util/Docker/Release.Dockerfile
Original file line number Diff line number Diff line change
@@ -1,13 +1,17 @@
ARG UBUNTU_DISTRO="22.04"

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

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

RUN apt-key adv --fetch-keys "https://developer.download.nvidia.com/compute/cuda/repos/ubuntu1804/x86_64/3bf863cc.pub"

RUN packages='libsdl2-2.0 xserver-xorg libvulkan1 libomp5' && apt-get update && DEBIAN_FRONTEND=noninteractive apt-get install -y $packages --no-install-recommends
# Install the `xdg-user-dir` tool so the Unreal Engine can use it to locate the user's Documents directory
RUN packages='xdg-user-dirs' \
&& apt-get update \
&& DEBIAN_FRONTEND=noninteractive apt-get install -y $packages \
&& rm -rf /var/lib/apt/lists/*

RUN useradd -m carla

Expand All @@ -16,6 +20,7 @@ COPY --chown=carla:carla . /home/carla
USER carla
WORKDIR /home/carla

# you can also run CARLA in offscreen mode with -RenderOffScreen
# CMD /bin/bash CarlaUnreal.sh -RenderOffScreen
CMD /bin/bash CarlaUnreal.sh
ENV SDL_VIDEODRIVER="x11"

# You can also run CARLA in offscreen mode with -RenderOffScreen
CMD ["/bin/bash", "CarlaUnreal.sh"]

0 comments on commit ada75f9

Please sign in to comment.