-
Notifications
You must be signed in to change notification settings - Fork 26
/
Dockerfile
55 lines (45 loc) · 1.18 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
49
50
51
52
53
54
55
# syntax=docker/dockerfile:1
FROM ubuntu:rolling
RUN apt-get update \
&& apt-get upgrade -y \
&& DEBIAN_FRONTEND=noninteractive \
apt-get install --no-install-recommends -y \
curl \
perl \
swig \
g++ \
ca-certificates \
libcurl4 \
libsdl2-2.0-0 \
net-tools \
python \
python3-pycurl \
p7zip-full \
jq \
openssh-client \
sshpass \
libio-socket-ssl-perl \
libdbi-perl \
libinline-python-perl \
libdbd-sqlite3-perl \
&& apt-get autoremove \
&& rm -rf /var/run/apt \
&& useradd -m spads
RUN mkdir -p /opt/spads /spring-data /spring-engines
COPY docker/spadsInstaller.auto /opt/spads
COPY docker/update-engine.sh /opt/
COPY docker/scripts/*.sh /opt/
COPY upload_replay.sh /opt/
RUN chown -R spads:spads /opt /spring-data /spring-engines
USER spads
RUN /opt/update-engine.sh
WORKDIR /opt/spads/
RUN curl -SLO http://planetspads.free.fr/spads/installer/spadsInstaller.tar \
&& tar -xf spadsInstaller.tar \
&& rm spadsInstaller.tar \
&& perl /opt/spads/spadsInstaller.pl
COPY etc /spads_etc/
COPY var /spads_var/
# perl /opt/spads/spads.pl /opt/spads/etc/spads.conf
#ENTRYPOINT [ "/opt/spads-entrypoint.sh" ]
CMD [ "/opt/run-spads.sh" ]