05-21-2024, 01:56 PM
Hello. I'm trying to create a Dockerfile to run a xonotic in a container. So far, I've written this:
And I run it with this command:
But I get this error:
The file is the folder. I verify it by changing the CMD instruction to CMD [ "ls", "-l", "/home/root/xonotic" ]
Then running the container (with the same command) results in:
Any idea why could this be happening?
Code:
FROM alpine:latest
EXPOSE 26000
RUN mkdir ~/.xonotic
RUN mkdir ~/xonotic
COPY "./server.cfg" "~/.xonotic/data"
CMD [ "/home/root/xonotic/server_linux.sh" ]
Code:
docker run -p 26000:26000 -v C:/Users/my_user/Downloads/Xonotic:/home/root/xonotic xonotic
Code:
/home/root/xonotic/server_linux.sh: exec: line 24: ./xonotic-linux64-dedicated: not found
Then running the container (with the same command) results in:
Code:
total 97856
-rwxrwxrwx 1 root root 2383 May 20 23:52 COPYING
drwxrwxrwx 1 root root 4096 May 20 23:52 Docs
-rwxrwxrwx 1 root root 18092 May 20 23:52 GPL-2
-rwxrwxrwx 1 root root 35147 May 20 23:52 GPL-3
-rwxrwxrwx 1 root root 3245 May 20 23:52 Makefile
drwxrwxrwx 1 root root 4096 May 20 23:52 Xonotic.app
drwxrwxrwx 1 root root 4096 May 20 23:52 bin32
drwxrwxrwx 1 root root 4096 May 20 23:52 bin64
drwxrwxrwx 1 root root 4096 May 20 23:53 data
-rwxrwxrwx 1 root root 280 May 20 23:52 key_0.d0pk
drwxrwxrwx 1 root root 4096 May 20 23:53 misc
drwxrwxrwx 1 root root 4096 May 20 23:53 server
-rwxrwxrwx 1 root root 709 May 21 18:37 server_linux.sh
drwxrwxrwx 1 root root 4096 May 20 23:53 source
-rwxrwxrwx 1 root root 5856452 May 20 23:52 xonotic-dedicated.exe
-rwxrwxrwx 1 root root 20 May 20 23:52 xonotic-linux-dedicated.sh
-rwxrwxrwx 1 root root 20 May 20 23:52 xonotic-linux-glx.sh
-rwxrwxrwx 1 root root 2727 May 20 23:52 xonotic-linux-sdl.sh
-rwxrwxrwx 1 root root 13239000 May 20 23:52 xonotic-linux64-dedicated
-rwxrwxrwx 1 root root 13785992 May 20 23:52 xonotic-linux64-glx
-rwxrwxrwx 1 root root 13759896 May 20 23:52 xonotic-linux64-sdl
-rwxrwxrwx 1 root root 3424008 May 20 23:52 xonotic-osx-dedicated
-rwxrwxrwx 1 root root 6726666 May 20 23:52 xonotic-wgl.exe
-rwxrwxrwx 1 root root 5523226 May 20 23:52 xonotic-x86-dedicated.exe
-rwxrwxrwx 1 root root 6300448 May 20 23:52 xonotic-x86-wgl.exe
-rwxrwxrwx 1 root root 13724006 May 20 23:52 xonotic-x86.exe
-rwxrwxrwx 1 root root 17769571 May 20 23:52 xonotic.exe