【问题标题】:Unreal Engine 5 docker image虚幻引擎 5 泊坞窗图像
【发布时间】:2023-02-19 16:45:30
【问题描述】:

我正尝试按照本教程为我的像素流项目构建 docker 镜像 OKE QuickStart

这是我的码头文件

# 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

我不清楚如何适应这条道路

【问题讨论】:

    标签: docker dockerfile unreal-engine5


    【解决方案1】:

    可能为时已晚,但 Epic 现在将文件夹称为“Linux”而不是“LinuxNoEditor”。也许这样试试?

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

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2019-09-19
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2021-04-29
      • 2018-12-15
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多