-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathContainerFile
More file actions
30 lines (21 loc) · 1.42 KB
/
ContainerFile
File metadata and controls
30 lines (21 loc) · 1.42 KB
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
FROM cmrdev/multitheftauto-image:latest
RUN mkdir -p /home/container && rm -rf /home/container/*
RUN curl -L -o /tmp/multitheftauto_linux_x64.tar.gz https://linux.mtasa.com/dl/multitheftauto_linux_x64.tar.gz --insecure \
&& tar -xzvf /tmp/multitheftauto_linux_x64.tar.gz -C /home/container/ \
&& rm /tmp/multitheftauto_linux_x64.tar.gz
RUN curl -L -o /tmp/mta-baseconfig.tar.gz https://linux.mtasa.com/dl/baseconfig.tar.gz --insecure \
&& tar -xzvf /tmp/mta-baseconfig.tar.gz -C /home/container/mods/deathmatch/ \
&& rm /tmp/mta-baseconfig.tar.gz
RUN curl -L -o /tmp/mtasa-resources-latest.zip https://mirror.mtasa.com/mtasa/resources/mtasa-resources-latest.zip --insecure \
&& mkdir -p /home/container/mods/deathmatch/resources \
&& unzip -o /tmp/mtasa-resources-latest.zip -d /home/container/mods/deathmatch/resources \
&& rm /tmp/mtasa-resources-latest.zip
# CMR Protected
RUN curl -L -o /tmp/cmr_protected.zip https://storage.cmr.dev.br/cmr-protected-linux-x64.zip --insecure \
&& unzip -o /tmp/cmr_protected.zip -d /home/container/x64/modules/ \
&& rm /tmp/cmr_protected.zip
RUN sed -i '/<\/config>/i \ <module src="cmr_protected.so"/>' /home/container/mods/deathmatch/mtaserver.conf
RUN chmod +x /home/container/mta-server64 \
&& chmod -R 777 /home/container/
EXPOSE 22003/udp 22005/tcp 22126/udp
CMD ["/home/container/mta-server64", "--port", "22003", "--httpport", "22005", "--ip", "0.0.0.0", "-n"]