Done setting

This commit is contained in:
2024-09-29 17:49:23 +03:00
parent eb8695f037
commit 524bc0d4bd
7 changed files with 63 additions and 74 deletions

View File

@@ -1,8 +1,5 @@
FROM debian:12
ARG gameid
ARG serveradmin
RUN echo "Building image with gameid: $gameid"
#Update
@@ -24,14 +21,18 @@ USER root
WORKDIR /home/minetest/minetest-source/build
RUN make install
RUN mkdir -p /usr/local/share/minetest/games/$gameid
RUN echo "name = $serveradmin" > /usr/local/share/minetest/games/$gameid/minetest.conf
COPY ./entrypoint.sh /entrypoint.sh
RUN chmod +x /entrypoint.sh
RUN chown -R minetest:minetest /usr/local/share/minetest
# RUN mkdir -p /usr/local/share/minetest/games/$gameid
# RUN echo "name = $serveradmin" > /usr/local/share/minetest/games/$gameid/minetest.conf
USER root
ENTRYPOINT ["bash"]
# USER root
# ENTRYPOINT ["bash"]
# USER minetest
# EXPOSE 30000/udp
# RUN echo "#!/bin/bash\n/usr/local/bin/minetestserver --gameid $gameid --terminal" > ./entrypoint.sh
# RUN chmod +x entrypoint.sh
# ENTRYPOINT ["./entrypoint.sh"]
USER minetest
# COPY sample.env /usr/local/share/mientest/.env
WORKDIR /usr/local/share/minetest
EXPOSE 30000/udp
ENTRYPOINT ["/entrypoint.sh"]