forked from MrucznikRolePlay/Mrucznik-RP-gamemode
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
34 lines (25 loc) · 1.06 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
# build stage
# todo: make run container
FROM southclaws/sampctl:1.9.1 as build
COPY . /samp
WORKDIR /samp
# https://stackoverflow.com/questions/22466255/is-it-possible-to-answer-dialog-questions-when-installing-under-docker
RUN echo 'debconf debconf/frontend select Noninteractive' | debconf-set-selections
# Install libssl1.0.0 for old discord plugin
RUN apt-get install wget gcc-10-base:i386 libc6:i386 libcrypt1:i386 libgcc-s1:i386 libidn2-0:i386 libunistring2:i386
RUN wget http://archive.ubuntu.com/ubuntu/pool/main/o/openssl/libssl1.0.0_1.0.2g-1ubuntu4.20_i386.deb
RUN dpkg -i libssl1.0.0_1.0.2g-1ubuntu4.20_i386.deb
# build gm
RUN sampctl package ensure
RUN sampctl package build
# copy files
RUN tar -xvf serverfiles.tar.gz
RUN cp -r gamemodes/*.amx serverfiles/gamemodes/
# re-create link for YSI lib
RUN rm /samp/serverfiles/scriptfiles/DANGEROUS_SERVER_ROOT
RUN ln -s /samp/serverfiles /samp/serverfiles/scriptfiles/DANGEROUS_SERVER_ROOT
WORKDIR /samp/serverfiles
ENTRYPOINT ["/samp/serverfiles/samp-svr"]
WORKDIR /samp
ENTRYPOINT ["stampctl"]
CMD ["package", "build"]