Attention | Topic was automatically imported from the old Question2Answer platform. | |
Asked By | Strip |
What Linux distribution would you suggest?
What needs to be pre-installed on Linux before exported application can run?
Notes: This is not CRLF problem. I am using latest Alpine Linux for Docker on Windows 10 Pro.
Take “Websocket Chat” demo for example and add code to start listening on node ready signal.
Export project for Linux platform:
websocket_chat.pck
websocket_chat.x86_64
Go to the export folder and create a file “Dockerfile” with content:
FROM alpine
WORKDIR /usr/src/websocket_chat/bin
COPY . /usr/src/websocket_chat/bin
EXPOSE 8000
ENV PORT 8000
ENV PATH=/usr/src/websocket_chat/bin:$PATH
CMD ["ls","-lR"]
Build image:
docker build --tag websocket_chat .
Run container:
docker run -p 8000:8000 websocket_chat
.: total 41904
-rwxr-xr-x 1 root root 64176 Oct 11 17:45 websocket_chat.pck
-rwxr-xr-x 1 root root 42843039 Oct 11 17:45 websocket_chat.x86_64
If you replace the last row in file Dockerfile with:
CMD ["websocket_chat.x86_64", ""]
standard_init_linux.go:211: exec user process caused "no such file or directory"
Error describes that command executed inside a container returned “no such file or directory” but it could be caused by many reasons. Also if the process can not start at all. We need to know what needs to be pre-installed on Linux to run Godot exported applications on Linux platform.