Skip to content

Instantly share code, notes, and snippets.

@harlowja
Created October 17, 2018 20:24
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save harlowja/f46a9fe85840e49a2158a4d16d4f7ad1 to your computer and use it in GitHub Desktop.
Save harlowja/f46a9fe85840e49a2158a4d16d4f7ad1 to your computer and use it in GitHub Desktop.
FROM ubuntu:16.04
ARG DEBIAN_FRONTEND=noninteractive
# Extracted from UE4/Engine/Build/BatchFiles/Linux
RUN apt-get update && apt-get install -y mesa-utils \
cmake \
git \
gdb \
dos2unix \
software-properties-common \
build-essential \
mono-xbuild \
mono-dmcs \
libmono-microsoft-build-tasks-v4.0-4.0-cil \
libmono-system-data-datasetextensions4.0-cil \
libmono-system-web-extensions4.0-cil \
libmono-system-management4.0-cil \
libmono-system-xml-linq4.0-cil \
libmono-corlib4.5-cil \
libmono-windowsbase4.0-cil \
libmono-system-io-compression4.0-cil \
libmono-system-io-compression-filesystem4.0-cil \
libmono-system-runtime4.0-cil \
mono-devel \
clang-3.8 \
llvm
# Nvidia driver
RUN add-apt-repository -y ppa:graphics-drivers/ppa
RUN apt-get update && apt-get install -y nvidia-396
# Unreal
ADD UE4 /UE4
WORKDIR /UE4
# Parts taken from: https://github.com/tweakmy/ue4-in-docker/
# and https://docs.docker.com/develop/develop-images/dockerfile_best-practices/#user
RUN addgroup --gid 1001 unreal
RUN useradd -ms /bin/bash --gid 1001 --uid 1002 unreal
RUN adduser unreal sudo
RUN perl -p -i.bak -e 's/%sudo\s+ALL=\(ALL:ALL\)\s+ALL/%sudo ALL=(ALL) NOPASSWD:ALL/g' /etc/sudoers
# Ok and now go...
RUN ./GenerateProjectFiles.sh
RUN chown -R unreal:unreal /UE4
USER unreal
RUN make
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment