2021-07-28 02:34:41 +08:00
|
|
|
FROM ubuntu:18.04
|
2019-07-09 18:44:03 +08:00
|
|
|
|
|
|
|
USER root
|
|
|
|
|
2021-07-28 02:34:41 +08:00
|
|
|
ARG EPIC_USER=user
|
|
|
|
ARG EPIC_PASS=pass
|
|
|
|
ENV DEBIAN_FRONTEND=noninteractive
|
2019-07-09 18:44:03 +08:00
|
|
|
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 \
|
2019-12-04 01:27:11 +08:00
|
|
|
libxml2-dev \
|
2021-07-28 02:34:41 +08:00
|
|
|
git \
|
2020-09-30 15:42:52 +08:00
|
|
|
aria2 && \
|
2020-08-27 22:31:02 +08:00
|
|
|
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
|
|
|
|
2021-07-28 02:34:41 +08:00
|
|
|
RUN useradd -m carla
|
|
|
|
COPY --chown=carla:carla . /home/carla
|
|
|
|
USER carla
|
|
|
|
WORKDIR /home/carla
|
|
|
|
ENV UE4_ROOT /home/carla/UE4.26
|
|
|
|
|
|
|
|
RUN git clone --depth 1 -b carla "https://${EPIC_USER}:${EPIC_PASS}@github.com/CarlaUnreal/UnrealEngine.git" ${UE4_ROOT}
|
2019-07-09 18:44:03 +08:00
|
|
|
|
|
|
|
RUN cd $UE4_ROOT && \
|
|
|
|
./Setup.sh && \
|
|
|
|
./GenerateProjectFiles.sh && \
|
|
|
|
make
|
|
|
|
|
2021-07-28 02:34:41 +08:00
|
|
|
WORKDIR /home/carla/
|