-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
24 lines (21 loc) · 861 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 ghcr.io/linuxserver/baseimage-mono:focal
RUN echo "**** install packages ****" \
&& apt-get update \
&& apt-get install -y \
unzip \
&& echo "**** install server ****" \
&& mkdir -p /app/phexenswuerfelraum \
&& cd /app/phexenswuerfelraum \
&& SERVER_VERSION=$(curl -s https://api.github.com/repos/markuskonojacki/PhexensWuerfelraum/releases/latest | grep -oP '"tag_name": "\K(.*)(?=")') \
&& curl -o /tmp/phexenswuerfelraum.zip -L "https://github.com/markuskonojacki/PhexensWuerfelraum/releases/download/${SERVER_VERSION}/Server-Linux-${SERVER_VERSION}.zip" \
&& unzip /tmp/phexenswuerfelraum.zip -d /app/phexenswuerfelraum \
&& echo "**** cleanup ****" \
&& apt-get clean \
&& rm -rf \
/tmp/* \
/var/tmp/*
# add local files
COPY root/ /
# ports and volumes
EXPOSE 12113
VOLUME /config