虚幻引擎5 docker图像

ssm49v7z  于 2023-02-21  发布在  Docker
关注(0)|答案(1)|浏览(155)

我正尝试按照本教程OKE QuickStart为我的像素流项目构建docker图像
这是我文档

# Perform the build in an Unreal Engine container image that includes the Engine Tools and Pixel Streaming for Linux
FROM --platform=${BUILDPLATFORM:-linux/amd64} ghcr.io/epicgames/unreal-engine:dev-5.1 AS builder

# Copy UE4 project (assumes `.uproject` in this directory)
COPY --chown=ue4:ue4 . /tmp/project
WORKDIR /tmp/project

RUN /home/ue4/UnrealEngine/Engine/Build/BatchFiles/RunUAT.sh BuildCookRun \
    -clientconfig=Development -serverconfig=Development \
    -project=/tmp/project/PixelStreamingDemo.uproject \
    -utf8output -nodebuginfo -allmaps -noP4 -cook -build -stage -prereqs -pak -archive \
    -archivedirectory=/tmp/project/dist \
    -platform=Linux \
    -Target=PixelStreamingDemo -nocompile -nocompileeditor

# Copy the packaged files into a container image that includes CUDA but doesn't include any Unreal Engine components
FROM --platform=${BUILDPLATFORM:-linux/amd64} ghcr.io/epicgames/unreal-engine:runtime-pixel-streaming
WORKDIR /tmp/project
COPY --from=builder --chown=ue4:ue4 /tmp/project/dist/LinuxNoEditor ./

# Establish ENV
ENV RES_X=1920 \
    RES_Y=1080 \
    SIGNAL_URL=ws://127.0.0.1:8888

# Start pixel streaming
CMD ["/bin/bash", "-c", "./PixelStreamingDemo.sh -PixelStreamingURL=${SIGNAL_URL} -RenderOffscreen -Unattended -ForceRes -ResX=${RES_X} -ResY=${RES_Y} -AllowPixelStreamingCommands ${EXTRA_ARGS}" ]

在我得到Step 7/9 : COPY --from=builder --chown=ue4:ue4 /tmp/project/dist/LinuxNoEditor ./ COPY failed: stat tmp/project/dist/LinuxNoEditor: file does not exist之前我一切都很好
我不清楚如何适应这条道路

5kgi1eie

5kgi1eie1#

可能太晚了,但是,Epic现在将文件夹称为“Linux”而不是“LinuxNoEditor”。也许可以这样尝试一下?

COPY --from=builder --chown=ue4:ue4 /tmp/project/dist/Linux ./

相关问题