This commit is contained in:
Aitzol Berasategi 2021-04-16 20:15:53 +02:00
parent 1c5bd94630
commit ad23b1cc96
3 changed files with 1 additions and 21 deletions

1
.bat
View File

@ -1 +0,0 @@
folder/bat/

View File

@ -1,27 +1,9 @@
#Dockerfile
FROM registry.gitlab.com/minetest/minetest/server:latest FROM registry.gitlab.com/minetest/minetest/server:latest
#ARG NI='aitzol'
ARG NI ARG NI
USER root USER root
#RUN adduser -S $NI -G minetest -u 1000 --disabled-password
#RUN chown -R $NI:minetest /var/lib/minetest
#RUN chown -R $NI:minetest /etc/minetest
#RUN ln -s /etc/minetest/ ~/.minetest
RUN adduser -S $NI -G minetest -u 1000 --disabled-password \ RUN adduser -S $NI -G minetest -u 1000 --disabled-password \
&& chown -R $NI:minetest /var/lib/minetest \ && chown -R $NI:minetest /var/lib/minetest \
&& chown -R $NI:minetest /etc/minetest \ && chown -R $NI:minetest /etc/minetest \
&& ln -s /etc/minetest/ ~/.minetest && ln -s /etc/minetest/ ~/.minetest
#COPY minetest.conf.example /root/.minetest/minetest.conf
#RUN ln -s /etc/minetest/ ~/.minetest
#RUN chown -R -h $NI:minetest ~/.minetest/
#RUN chown -R $NI:minetest ~/.minetest
#RUN chown -R $NI:minetest /etc/minetest
#RUN touch /etc/minetest/minetest.conf
#RUN ln -s /etc/minetest/ ~/.minetest
#RUN chown -R $NI:minetest ~/.minetest
#COPY minetest.conf.example /root/.minetest/minetest.conf
#CMD cp /usr/local/share/minetest/games/minetest_game/minetest.conf /etc/minetest

View File

@ -18,6 +18,5 @@ services:
volumes: volumes:
- ./data:/var/lib/minetest/:rw - ./data:/var/lib/minetest/:rw
- ./conf:/etc/minetest/:rw - ./conf:/etc/minetest/:rw
ports: ports:
- 30000:30000/udp - 30000:30000/udp