working server
This commit is contained in:
parent
f3f89aa6fb
commit
e5a875888b
28
Dockerfile
28
Dockerfile
@ -1,3 +1,27 @@
|
|||||||
FROM lscr.io/linuxserver/minetest:latest
|
# https://github.com/minetest/minetest/blob/master/Dockerfile
|
||||||
|
|
||||||
RUN apk add luajit lua-socket lua-cjson
|
FROM ghcr.io/linuxserver/minetest:latest
|
||||||
|
|
||||||
|
ARG no-cache cached
|
||||||
|
|
||||||
|
RUN apk add --no-cache luajit lua5.1-socket
|
||||||
|
|
||||||
|
#RUN echo "#!/usr/bin/env bash" > /usr/local/bin/ipv4
|
||||||
|
#RUN echo "ifconfig | grep -A 1 eth0 | tail -n 1 | awk '{ print \$2 }' | sed 's/addr://'" >> /usr/local/bin/ipv4
|
||||||
|
#RUN chmod o+x /usr/local/bin/ipv4
|
||||||
|
|
||||||
|
RUN echo "#!/usr/bin/env bash" > /usr/local/bin/start_luanti
|
||||||
|
#RUN echo "export IPV4=\$(/usr/local/bin/ipv4)" >> /usr/local/bin/start_luanti
|
||||||
|
#RUN echo "echo \$IPV4" >> /usr/local/bin/start_luanti
|
||||||
|
RUN echo "/usr/bin/luantiserver --config /config/.minetest/main-config/minetest.conf" >> /usr/local/bin/start_luanti
|
||||||
|
RUN chmod o+x /usr/local/bin/start_luanti
|
||||||
|
|
||||||
|
ENTRYPOINT ["/usr/local/bin/start_luanti"]
|
||||||
|
|
||||||
|
#RUN echo "#!/usr/bin/env bash" > /usr/bin/app
|
||||||
|
#RUN echo "for ((;;))" >> /usr/bin/app
|
||||||
|
#RUN echo "do" >> /usr/bin/app
|
||||||
|
#RUN echo "sleep 1" >> /usr/bin/app
|
||||||
|
#RUN echo "done" >> /usr/bin/app
|
||||||
|
#RUN chmod o+x /usr/bin/app
|
||||||
|
#ENTRYPOINT ["bash", "/usr/bin/app"]
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
services:
|
services:
|
||||||
minetest-server:
|
minetest-server:
|
||||||
#image: lscr.io/linuxserver/minetest:latest
|
#image: ghcr.io/linuxserver/minetest:latest
|
||||||
build: ./
|
build: ./
|
||||||
container_name: minetest-server
|
container_name: minetest-server
|
||||||
deploy:
|
deploy:
|
||||||
@ -17,6 +17,7 @@ services:
|
|||||||
PGID: '1000'
|
PGID: '1000'
|
||||||
CLI_ARGS: '--gameid minetest_game --port 30000'
|
CLI_ARGS: '--gameid minetest_game --port 30000'
|
||||||
ports:
|
ports:
|
||||||
|
- 29999:29999
|
||||||
- 30000:30000/udp
|
- 30000:30000/udp
|
||||||
volumes:
|
volumes:
|
||||||
- ${DATA}:/config/.minetest/
|
- ${DATA}:/config/.minetest/
|
||||||
|
Loading…
Reference in New Issue
Block a user