-
Notifications
You must be signed in to change notification settings - Fork 5
/
Dockerfile
23 lines (15 loc) · 1.24 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
FROM ghcr.io/epicgames/unreal-engine:dev-4.27 as builder
# Clone the source code for the example Unreal project from github
RUN git clone --progress --depth=1 'https://github.com/stevensu1977/UE4-PixelStreaming-demo' /tmp/UE4-PixelStreaming-demo && mv /tmp/UE4-PixelStreaming-demo/FirstPersonProject /tmp/project
# Package the example Unreal project
RUN /home/ue4/UnrealEngine/Engine/Build/BatchFiles/RunUAT.sh BuildCookRun \
-clientconfig=Development -serverconfig=Development \
-project=/tmp/project/FirstPersonProject.uproject \
-utf8output -nodebuginfo -allmaps -noP4 -cook -build -stage -prereqs -pak -archive \
-archivedirectory=/tmp/project/dist \
-platform=Linux
# Copy the packaged project into the Pixel Streaming runtime image
FROM ghcr.io/epicgames/unreal-engine:runtime-pixel-streaming
COPY --from=builder --chown=ue4:ue4 /tmp/project/dist/LinuxNoEditor /home/ue4/project
# Set the project as the container's entrypoint
ENTRYPOINT ["/home/ue4/project/FirstPersonProject.sh", "-RenderOffscreen", "-RenderOffscreen", "-AllowPixelStreamingCommands" ,"-PixelStreamingHideCursor" ,"-PixelStreamingWebRTCMaxFps=30", "-PixelStreamingWebRTCDisableReceiveAudio","-FullStdOutLogOutput", "-ForceRes", "-ResX=1920", "-ResY=1080"]