-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
38 lines (30 loc) · 995 Bytes
/
Dockerfile
File metadata and controls
38 lines (30 loc) · 995 Bytes
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
# Nutze das offizielle Debian-Image
FROM debian:buster-slim AS base
WORKDIR /usr/src/app
ENV DEBIAN_FRONTEND=noninteractive
ENV CLONE_HERO_VERSION=V1.0.0.4080
ENV CLONE_HERO_SERVER_NAME=Synbase
RUN apt-get update
RUN apt-get install -y wget unzip ca-certificates curl jq libicu63 libgssapi-krb5-2
# Lade Server herunter und bereite Daten vor
FROM base AS build
WORKDIR /usr/src/app
# Lade CloneHero Server herunter
RUN mkdir ./download
WORKDIR /usr/src/app/download
RUN wget -qO ./server.zip https://github.com/clonehero-game/releases/releases/download/$CLONE_HERO_VERSION/CloneHero-standalone_server.zip
RUN unzip ./server.zip
RUN rm ./server.zip
WORKDIR /usr/src/app
# Kopiere Server für Debian
RUN mv ./download/**/linux-x64/* .
RUN rm -r -f ./download
RUN chmod +x ./Server
# Kopiere ausführbare Datei
COPY ./startup.sh ./startup.sh
RUN chmod +x ./startup.sh
FROM base
WORKDIR /usr/src/app
COPY --from=build /usr/src/app /usr/src/app
EXPOSE 14242/udp
ENTRYPOINT [ "./startup.sh" ]