forked from MegaThorx/mtasa
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
31 lines (22 loc) · 925 Bytes
/
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
FROM debian:latest
ARG DLURL=https://nightly.mtasa.com/?multitheftauto_linux_x64-1.5-rc-latest
ARG ARCH=x64
ENV ARCH $ARCH
COPY ./install.sh /install.sh
RUN /bin/sh ./install.sh && \
rm install.sh && \
groupadd -g 2000 container && \
useradd -d /home/container -m container -u 2000 -g 2000 && \
mkdir /mtasa && \
chown 2000:2000 /mtasa
USER 2000:2000
RUN wget -q -O /home/container/mtaserver.tar.gz $DLURL && \
tar -xf /home/container/mtaserver.tar.gz -C /mtasa --strip-components=1 && \
rm -f /home/container/mtaserver.tar.gz && \
mkdir /mtasa/config && \
wget -q -O /home/container/baseconfig.tar.gz https://linux.mtasa.com/dl/baseconfig.tar.gz && \
tar -xf /home/container/baseconfig.tar.gz -C /mtasa/config --strip-components=1 && \
rm /home/container/baseconfig.tar.gz
EXPOSE 22003 22005 22126
COPY ./entrypoint.sh /entrypoint.sh
CMD ["/bin/bash", "/entrypoint.sh"]