carla/Util/Docker/Prerequisites.Dockerfile

52 lines
1.2 KiB
Docker
Raw Normal View History

2020-03-20 00:26:35 +08:00
ARG UE4_V=4.24.3
2019-07-09 18:44:03 +08:00
FROM adamrehn/ue4-source:${UE4_V}-opengl
USER root
ENV UE4_ROOT /home/ue4/UnrealEngine
RUN apt-get update ; \
apt-get install -y wget software-properties-common && \
add-apt-repository ppa:ubuntu-toolchain-r/test && \
wget -O - https://apt.llvm.org/llvm-snapshot.gpg.key|apt-key add - && \
2020-03-23 22:19:22 +08:00
apt-add-repository "deb http://apt.llvm.org/xenial/ llvm-toolchain-xenial-8 main" && \
2019-07-09 18:44:03 +08:00
apt-get update ; \
apt-get install -y build-essential \
2020-03-23 22:19:22 +08:00
clang-8 \
lld-8 \
2019-07-09 18:44:03 +08:00
g++-7 \
cmake \
ninja-build \
libvulkan1 \
python \
python-pip \
python-dev \
python3-dev \
python3-pip \
libpng-dev \
libtiff5-dev \
libjpeg-dev \
tzdata \
sed \
curl \
unzip \
autoconf \
libtool \
rsync \
libxml2-dev \
aria2 \
libxerces-c-dev && \
pip3 install -Iv setuptools==47.3.1 && \
2020-07-17 05:13:53 +08:00
pip3 install distro && \
2020-03-23 22:19:22 +08:00
update-alternatives --install /usr/bin/clang++ clang++ /usr/lib/llvm-8/bin/clang++ 180 && \
update-alternatives --install /usr/bin/clang clang /usr/lib/llvm-8/bin/clang 180
2019-07-09 18:44:03 +08:00
USER ue4
RUN cd $UE4_ROOT && \
./Setup.sh && \
./GenerateProjectFiles.sh && \
make
WORKDIR /home/ue4