cleanup
This commit is contained in:
parent
524bc0d4bd
commit
be2870e0d4
15
Dockerfile
15
Dockerfile
|
@ -7,7 +7,7 @@ RUN apt update -y && apt upgrade -y
|
||||||
|
|
||||||
RUN apt install -y tmux wget curl unzip git g++ make libc6-dev cmake libpng-dev libjpeg-dev libgl1-mesa-dev libsqlite3-dev libogg-dev libvorbis-dev libopenal-dev libcurl4-gnutls-dev libfreetype6-dev zlib1g-dev libgmp-dev libjsoncpp-dev libzstd-dev libluajit-5.1-dev gettext libsdl2-dev libncurses5-dev
|
RUN apt install -y tmux wget curl unzip git g++ make libc6-dev cmake libpng-dev libjpeg-dev libgl1-mesa-dev libsqlite3-dev libogg-dev libvorbis-dev libopenal-dev libcurl4-gnutls-dev libfreetype6-dev zlib1g-dev libgmp-dev libjsoncpp-dev libzstd-dev libluajit-5.1-dev gettext libsdl2-dev libncurses5-dev
|
||||||
|
|
||||||
#Install minetest
|
#Get minetest sources
|
||||||
RUN useradd -ms /bin/bash minetest
|
RUN useradd -ms /bin/bash minetest
|
||||||
USER minetest
|
USER minetest
|
||||||
WORKDIR /home/minetest
|
WORKDIR /home/minetest
|
||||||
|
@ -17,21 +17,22 @@ RUN mkdir /home/minetest/minetest-source/build
|
||||||
WORKDIR /home/minetest/minetest-source/build
|
WORKDIR /home/minetest/minetest-source/build
|
||||||
RUN cmake -DBUILD_SERVER=TRUE -DBUILD_CLIENT=FALSE -DENABLE_CURL=ON -DENABLE_CURSES=ON -DENABLE_POSTGRES=ON -DENABLE_SOUND=OFF ..
|
RUN cmake -DBUILD_SERVER=TRUE -DBUILD_CLIENT=FALSE -DENABLE_CURL=ON -DENABLE_CURSES=ON -DENABLE_POSTGRES=ON -DENABLE_SOUND=OFF ..
|
||||||
RUN make -j 6
|
RUN make -j 6
|
||||||
|
|
||||||
|
|
||||||
USER root
|
USER root
|
||||||
WORKDIR /home/minetest/minetest-source/build
|
WORKDIR /home/minetest/minetest-source/build
|
||||||
RUN make install
|
|
||||||
|
|
||||||
|
#Compile and install minetest-server
|
||||||
|
RUN make install
|
||||||
COPY ./entrypoint.sh /entrypoint.sh
|
COPY ./entrypoint.sh /entrypoint.sh
|
||||||
RUN chmod +x /entrypoint.sh
|
RUN chmod +x /entrypoint.sh
|
||||||
RUN chown -R minetest:minetest /usr/local/share/minetest
|
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
|
#Cleanup
|
||||||
# ENTRYPOINT ["bash"]
|
WORKDIR /usr/local/share/minetest
|
||||||
|
RUN rm -rf /home/minetest/minetest-source/
|
||||||
|
|
||||||
USER minetest
|
USER minetest
|
||||||
# COPY sample.env /usr/local/share/mientest/.env
|
|
||||||
WORKDIR /usr/local/share/minetest
|
WORKDIR /usr/local/share/minetest
|
||||||
|
|
||||||
EXPOSE 30000/udp
|
EXPOSE 30000/udp
|
||||||
|
|
Loading…
Reference in New Issue