-
Notifications
You must be signed in to change notification settings - Fork 138
/
Dockerfile
51 lines (43 loc) · 1.19 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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
FROM debian:stable
###
# install dependencies
RUN apt update
RUN apt install --no-install-recommends --assume-yes \
locales \
gettext \
man-db \
psmisc \
procps \
nano \
tree \
ncal \
x11-apps
RUN apt clean
RUN rm -rf /var/lib/apt/lists/*
###
# install locales and set default
RUN sed -i 's/^# *\(en_US.UTF-8\)/\1/' /etc/locale.gen
RUN sed -i 's/^# *\(fr_FR.UTF-8\)/\1/' /etc/locale.gen
RUN locale-gen
RUN update-locale LANG=en_US.UTF-8
ENV LANG en_US.UTF-8
###
# set user and group
ARG user=gsh-user
ARG group=gsh-user
ARG uid=1000
ARG gid=1000
RUN groupadd -g ${gid} ${group}
RUN useradd -u ${uid} -g ${group} -s /bin/sh -m ${user} # <--- the '-m' create a user home directory
###
# switch to user
USER ${uid}:${gid}
WORKDIR /home/${user}
### use the latest github version
ADD --chown=gsh-user:gsh-user https://github.com/phyver/GameShell/releases/download/latest/gameshell.sh gameshell.sh
### if you prefer to use a local customized version, comment the preceeding
### ADD ...
### line and uncomment the next one
### (NOTE that you need to have generated a "gameshell.sh" file with GSH_ROOT/utils/archive.sh
# COPY gameshell.sh .
ENTRYPOINT ["bash", "./gameshell.sh"]