After following the Unreal Setup of a Linux dedicated server documentation I was able to get the docker container running on the LocalMultiplyerAgent. But when I try to use the "StartGameCommand" in the MultiplayerSettings.json it errors out with a "code=BadRequest".
When I set the StartCommand as just a launch script
I get the error of "the working directory '.' is invalid, it needs to be an absolute path"
When I set the StartCommand to use a full CMD
"StartGameCommand": "chown -R ue.ue $PF_SERVER_LOG_DIRECTORY && su ue -c ./StartMap01.sh",
I get the error of "failed to create task for container: failed to create shim task: OCI runtime create failed: runc create failed: unable to start container process: exec: \"cmd /c chown -R ue.ue $PF_SERVER_LOG_DIRECTORY && su ue -c ./StartMap01.sh\": stat cmd /c chown -R ue.ue $PF_SERVER_LOG_DIRECTORY && su ue -c ./StartMap01.sh: no such file or directory: unknown"
What am I doing wrong, how can I call a script in the root of the server that will override the default Docker behavior? I have got it to work on the Windows side and don't see any examples around that is similar.
For reference, this is my Server root directory.
And for the DockerFile is
FROM ubuntu:18.04 # Unreal refuses to run as root user, so we must create a user to run as # Docker uses root by default RUN useradd --system ue USER ue EXPOSE 7777/udp WORKDIR /server COPY --chown=ue:ue . /server USER root CMD chown -R ue.ue $PF_SERVER_LOG_DIRECTORY && su ue -c ./Server_PLAYFAB.sh