-
Notifications
You must be signed in to change notification settings - Fork 4
/
Dockerfile
51 lines (46 loc) · 1.52 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
########################################################################
# We can't do COPY --from=pvarki/tak-server-dist:$TAK_RELEASE #
# So work around like this #
########################################################################
ARG TEMURIN_VERSION="17"
ARG TAK_RELEASE="5.2-RELEASE-30"
FROM pvarki/tak-server-dist:$TAK_RELEASE AS tak-files
RUN mv /zips/takserver-docker-*.zip /tmp/takserver.zip
FROM eclipse-temurin:${TEMURIN_VERSION}-jammy AS deps
ENV \
LC_ALL=C.UTF-8
RUN apt-get update && apt-get install -y \
emacs-nox \
net-tools \
netcat \
vim \
nmon \
python3-lxml \
unzip \
tini \
curl \
pwgen \
zip \
openssh-client \
postgresql-client \
jq \
&& apt-get autoremove -y \
&& rm -rf /var/lib/apt/lists/* \
&& curl https://raw.githubusercontent.com/vishnubob/wait-for-it/master/wait-for-it.sh -o /usr/bin/wait-for-it.sh \
&& chmod a+x /usr/bin/wait-for-it.sh \
&& true
COPY --from=hairyhenderson/gomplate:stable /gomplate /bin/gomplate
SHELL ["/bin/bash", "-lc"]
FROM deps AS install
COPY docker/entrypoint.sh /entrypoint.sh
COPY --from=tak-files /tmp/takserver.zip /tmp/takserver.zip
RUN cd /tmp \
&& unzip takserver.zip \
&& rm takserver.zip \
&& export DISTDIR=`echo takserver-docker-*` \
&& mv $DISTDIR"/tak" /opt/tak \
&& true
COPY scripts /opt/scripts
COPY templates /opt/templates
FROM install AS run
ENTRYPOINT ["/usr/bin/tini", "--", "/entrypoint.sh"]