-
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Dockerfile
35 lines (29 loc) · 1.23 KB
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
FROM ghcr.io/ronoaldo/minetestserver:5.9.0
# Setup system-wide settings
USER root
RUN mkdir -p /var/lib/mercurio &&\
mkdir -p /var/lib/minetest/.minetest &&\
chown -R minetest /var/lib/mercurio /var/lib/minetest /etc/minetest
# Install additional tools for the server
RUN apt-get update && apt-get install jq curl -yq && apt-get clean
# Install mods system-wide (ro)
COPY mods /usr/share/minetest/mods
# Add server skins to database
COPY skins/meta /usr/share/minetest/mods/skinsdb/meta
COPY skins/textures /usr/share/minetest/mods/skinsdb/textures
# Add server mod
COPY mercurio /usr/share/minetest/mods/mercurio
# Add configuration files to image
COPY world.mt /etc/minetest/world.mt
COPY minetest.conf /etc/minetest/minetest.conf
COPY news /etc/minetest/news
COPY scripts/mercurio.sh /usr/bin
COPY scripts/backup.sh /usr/bin
COPY scripts/lib /usr/lib/scripts
# Force load screwdriver mod as it is used by many ones
# After Minetest 5.9 several mods stopped loading properly
RUN echo "first_mod=screwdriver" >> /usr/share/minetest/games/minetest_game/game.conf
# Restore user to minetest and redefine launch script
WORKDIR /var/lib/minetest
USER minetest
CMD ["/usr/bin/mercurio.sh"]