Skip to content

Commit 38f6979

Browse files
authored
Merge pull request #10 from vinanrra/Fix-$home-path
Add user home link, fix $HOME path
2 parents 1534b63 + d2e15c0 commit 38f6979

File tree

1 file changed

+20
-19
lines changed

1 file changed

+20
-19
lines changed

Dockerfile

Lines changed: 20 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,25 @@ FROM steamcmd/steamcmd:ubuntu-18
22

33
STOPSIGNAL SIGTERM
44

5+
####Environments####
6+
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
21+
22+
####Environments####
23+
524
##############BASE IMAGE##############
625

726
####Labels####
@@ -44,24 +63,6 @@ RUN dpkg --add-architecture i386 && \
4463
libsdl2-2.0-0:i386 \
4564
xz-utils
4665

47-
####Environments####
48-
49-
ENV PUID=1000
50-
ENV PGID=1000
51-
ENV START_MODE=1
52-
ENV TEST_ALERT=no
53-
ENV TimeZone=Europe/Madrid
54-
ENV VERSION=public
55-
ENV MONITOR=yes
56-
ENV BACKUP=yes
57-
ENV LANG=en_US.utf8
58-
59-
##Need use xterm for LinuxGSM##
60-
ENV TERM=xterm
61-
ENV DEBIAN_FRONTEND noninteractive
62-
63-
####Environments####
64-
6566
# Install latest su-exec
6667
RUN set -ex; \
6768
\
@@ -87,7 +88,7 @@ RUN apt clean && \
8788
##############BASE IMAGE##############
8889

8990
# Create user
90-
RUN adduser --disabled-password --shell /bin/bash --disabled-login --gecos "" sfserver
91+
RUN adduser --home /home/sfserver --disabled-password --shell /bin/bash --disabled-login --gecos "" sfserver
9192

9293
# Base dir
9394
WORKDIR /home/sfserver

0 commit comments

Comments
 (0)