This repository was archived by the owner on Nov 15, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathDockerfile
48 lines (40 loc) · 1.43 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
FROM debian:buster-slim
LABEL maintainer="me@グルーバー.com"
LABEL org.opencontainers.image.source = "https://github.com/gruberdev/infrastructure-fivem"
ENV LANG=en_US.UTF-8
ENV LANGUAGE=en_US:en
ENV LC_ALL=en_US.UTF-8
ENV DATA_DIR="/serverdata"
ENV SERVER_DIR="${DATA_DIR}/serverfiles"
ENV GAME_CONFIG=""
ENV SVR_ADR $FILES_URL
ENV MANUAL_UPDATES=""
ENV SERVER_KEY $SERVER_KEY
ENV ENABLE_WEBCONSOLE="true"
ENV GOTTY_PARAMS="-w --title-format FiveM"
ENV UMASK=000
ENV UID=99
ENV GID=100
ENV START_VARS=""
ENV DATA_PERM=770
ENV USER="fivem"
RUN apt-get update && \
apt-get -y install --no-install-recommends wget locales procps xz-utils unzip screen && \
touch /etc/locale.gen && \
echo "en_US.UTF-8 UTF-8" >> /etc/locale.gen && \
locale-gen && \
apt-get -y install --reinstall ca-certificates && \
rm -rf /var/lib/apt/lists/*
RUN wget -O /tmp/gotty.tar.gz https://github.com/yudai/gotty/releases/download/v1.0.1/gotty_linux_amd64.tar.gz && \
tar -C /usr/bin/ -xvf /tmp/gotty.tar.gz && \
rm -rf /tmp/gotty.tar.gz
RUN mkdir $DATA_DIR && \
mkdir $SERVER_DIR && \
useradd -d $SERVER_DIR -s /bin/bash $USER && \
chown -R $USER $DATA_DIR && \
ulimit -n 2048
ADD /resources/scripts/ /opt/scripts/
ADD /resources/config /serverdata/serverfiles
RUN chmod -R 770 /opt/scripts/
ARG FILES_URL=https://runtime.fivem.net/artifacts/fivem/build_proot_linux/master/
ENTRYPOINT ["/opt/scripts/start.sh"]