Search Unity

Docker - error while loading shared libraries: UnityPlayer.so: cannot open shared object file

Discussion in 'Linux' started by GameSire, Feb 19, 2020.

  1. GameSire

    GameSire

    Joined:
    Aug 5, 2019
    Posts:
    12
    Code (CSharp):
    1. FROM ubuntu:16.04
    2.  
    3. RUN useradd -ms /bin/bash unity
    4.  
    5. RUN apt-get update -qq; \
    6. apt-get install -qq -y \
    7. zip \
    8. libgconf-2-4 \
    9. && apt-get clean \
    10. && rm -rf /var/lib/apt/lists/*
    11.  
    12. WORKDIR /home/unity
    13.  
    14. COPY Archiwum.zip .
    15.  
    16. RUN chown unity:unity Archiwum.zip
    17.  
    18. RUN unzip Archiwum.zip
    19.  
    20. USER unity
    21.  
    22. EXPOSE 6000
    23.  
    24.  
    25. ENTRYPOINT ["./Ao-Server-Linux.x86_64","-startMapSpawnServer", "-spawnExePath '/Ao-Server-Linux.x86_64'","-startCentralServer","-startChatServer","-machineAddress '192.168.1.102'"]
    26.  
    error while loading shared libraries: UnityPlayer.so: cannot open shared object file: No such file or directory

    Any idea how to dockerize linux server build?
     
  2. GameSire

    GameSire

    Joined:
    Aug 5, 2019
    Posts:
    12
    solution is to copy unityplayer.so to instance.
     
  3. andrews_unity

    andrews_unity

    Unity Technologies

    Joined:
    Dec 11, 2015
    Posts:
    258
    Yes you will need that in order to run your application!
     
unityunity