-
Notifications
You must be signed in to change notification settings - Fork 1
/
Dockerfile
86 lines (70 loc) · 2.09 KB
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
FROM nvidia/cuda:11.2.1-devel-ubuntu20.04 AS devel-base
ENV NVIDIA_DRIVER_CAPABILITIES compute,utility,video
WORKDIR /tmp/workdir
RUN apt-get -yqq update && \
apt-get install -yq --no-install-recommends build-essential sudo ca-certificates ssh expat libgomp1 && \
apt-get autoremove -y && \
apt-get clean -y
FROM nvidia/cuda:11.2.1-runtime-ubuntu20.04 AS runtime-base
ENV NVIDIA_DRIVER_CAPABILITIES compute,utility,video
WORKDIR /tmp/workdir
RUN apt-get -yqq update && \
apt-get install -yq --no-install-recommends build-essential sudo ca-certificates ssh expat libgomp1 libxcb-shape0-dev && \
apt-get autoremove -y && \
apt-get clean -y
FROM devel-base as build
ENV DEBIAN_FRONTEND="noninteractive" \
TZ="America/Los_Angeles"
RUN buildDeps="autoconf \
automake \
curl \
ffmpeg \
g++ \
gcc \
git \
libssl-dev \
make \
openssl \
pkg-config \
yasm" && \
apt-get -yqq update && \
apt-get install -yq --no-install-recommends ${buildDeps}
COPY . /OpenUVR
WORKDIR /OpenUVR/sending
RUN mkdir /root/.ssh
COPY id_rsa /root/.ssh/
RUN chmod 600 /root/.ssh/id_rsa && \
touch /root/.ssh/known_hosts && \
ssh-keyscan github.com >> /root/.ssh/known_hosts && \
git submodule init && git submodule update && \
git apply /OpenUVR/sending/bgr0_ffmpeg.patch
## nv-codec
RUN \
DIR=/tmp/nv-codec-headers && \
mkdir -p ${DIR} && \
cd ${DIR} && \
git clone https://git.videolan.org/git/ffmpeg/nv-codec-headers.git ${DIR} && \
make && \
make install && \
rm -rf ${DIR}
RUN codecs="libass-dev \
libfdk-aac-dev \
libgles2-mesa-dev \
libmp3lame-dev \
libpulse-dev \
libvorbis-dev \
libx264-dev \
libx265-dev \
libtheora-dev" && \
apt-get install -yq --no-install-recommends ${codecs}
RUN make ffmpeg
RUN git config --global core.compression 0 && \
git clone --depth 1 [email protected]:EpicGames/UnrealTournament.git /UnrealTournament
WORKDIR /UnrealTournament
RUN git fetch --unshallow && \
git pull --all && \
apt-get install -yq --no-install-recommends mono-dmcs mono-mcs && \
./Setup.sh && \
./GenerateProjectFiles.sh && \
make
CMD ["./UE4Editor"]