-
Notifications
You must be signed in to change notification settings - Fork 2
/
Dockerfile
24 lines (23 loc) · 769 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
FROM i386/debian:10-slim AS base
RUN apt-get -y update && \
apt-get -y --force-yes install ca-certificates wget unzip && \
wget https://static.soldat.pl/downloads/soldatserver2.8.2_1.7.1.1.zip && \
unzip soldatserver2.8.2_1.7.1.1.zip && \
mv solda*/ soldat && \
chmod +x soldat/soldatserver && \
chmod -R 0777 soldat/logs && \
chmod -R u+w soldat/logs/ && \
chmod -R u+w soldat/anti-cheat/ && \
chmod 666 soldat/banned*.txt
ADD ./config/ /soldat/
RUN chmod +x soldat/start.sh
FROM i386/debian:10-slim
MAINTAINER Kristian Dahl Kærgaard <[email protected]>
COPY --from=base /soldat /soldat
RUN useradd -ms /bin/bash soldat && \
chown -R soldat:soldat /soldat
USER soldat
EXPOSE 23073
EXPOSE 23083
WORKDIR /soldat
CMD ./start.sh