@@ -4,28 +4,21 @@ STOPSIGNAL SIGTERM
44
55# ###Environments####
66
7- ENV PUID=1000
8- ENV PGID=1000
9- ENV START_MODE=1
10- ENV TEST_ALERT=no
11- ENV TimeZone=Europe/Madrid
12- ENV VERSION=public
13- ENV MONITOR=yes
14- ENV BACKUP=yes
15- ENV LANG=en_US.utf8
16- ENV HOME=/home/sfserver
17-
18- # #Need use xterm for LinuxGSM##
19- ENV TERM=xterm
20- ENV DEBIAN_FRONTEND noninteractive
7+ ENV PUID=1000 PGID=1000 TimeZone=Europe/Madrid HOME=/home/sfserver LANG=en_US.utf8 TERM=xterm DEBIAN_FRONTEND=noninteractive \
8+ START_MODE=1 \
9+ TEST_ALERT=no \
10+ TimeZone=Europe/Madrid \
11+ VERSION=public \
12+ MONITOR=no \
13+ BACKUP=no
2114
2215# ###Environments####
2316
2417# #############BASE IMAGE##############
2518
2619# ###Labels####
2720LABEL maintainer="vinanrra"
28- LABEL build_version="version: 0.0.6 "
21+ LABEL build_version="version: 0.0.7 "
2922
3023# ####Dependencies####
3124
@@ -65,18 +58,18 @@ RUN dpkg --add-architecture i386 && \
6558
6659# Install latest su-exec
6760RUN set -ex; \
68- \
69- curl -o /usr/local/bin/su-exec.c https://raw.githubusercontent.com/ncopa/su-exec/master/su-exec.c; \
70- \
71- fetch_deps='gcc libc-dev' ; \
72- apt-get install -y --no-install-recommends $fetch_deps; \
73- gcc -Wall \
74- /usr/local/bin/su-exec.c -o/usr/local/bin/su-exec; \
75- chown root:root /usr/local/bin/su-exec; \
76- chmod 0755 /usr/local/bin/su-exec; \
77- rm /usr/local/bin/su-exec.c; \
78- \
79- apt-get purge -y --auto-remove $fetch_deps
61+ \
62+ curl -o /usr/local/bin/su-exec.c https://raw.githubusercontent.com/ncopa/su-exec/master/su-exec.c; \
63+ \
64+ fetch_deps='gcc libc-dev' ; \
65+ apt-get install -y --no-install-recommends $fetch_deps; \
66+ gcc -Wall \
67+ /usr/local/bin/su-exec.c -o/usr/local/bin/su-exec; \
68+ chown root:root /usr/local/bin/su-exec; \
69+ chmod 0755 /usr/local/bin/su-exec; \
70+ rm /usr/local/bin/su-exec.c; \
71+ \
72+ apt-get purge -y --auto-remove $fetch_deps
8073
8174# Clear unused files
8275RUN apt clean && \
@@ -93,19 +86,15 @@ RUN adduser --home /home/sfserver --disabled-password --shell /bin/bash --disabl
9386# Base dir
9487WORKDIR /home/sfserver
9588
89+ # Download linuxgsm script + perms
9690RUN set -ex; \
97- wget https://raw.githubusercontent.com/GameServerManagers/LinuxGSM/master/linuxgsm.sh
91+ wget https://raw.githubusercontent.com/GameServerManagers/LinuxGSM/master/linuxgsm.sh && \
92+ chmod +x linuxgsm.sh && \
93+ su-exec sfserver bash linuxgsm.sh sfserver
9894
99- RUN chmod +x linuxgsm.sh && su-exec sfserver bash linuxgsm.sh sfserver
100-
101- # Add files
102- ADD install.sh user.sh /home/sfserver/
103- ADD scripts /home/sfserver/scripts
104- ADD lgsm/config-lgsm/sfserver/common.cfg /home/sfserver/
105- ADD lgsm /home/sfserver/lgsm
106-
107- # Apply permissions
108- RUN chmod +x install.sh user.sh
95+ # Add files with perms
96+ COPY --chmod=755 install.sh user.sh /home/sfserver/
97+ COPY --chmod=755 scripts /home/sfserver/scripts
10998
11099# #############EXTRA CONFIG##############
111100# Ports
0 commit comments