Created
October 17, 2018 20:24
-
-
Save harlowja/f46a9fe85840e49a2158a4d16d4f7ad1 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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