diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..bfcdb8a --- /dev/null +++ b/Dockerfile @@ -0,0 +1,13 @@ +FROM alpine:edge + +RUN echo -e "http://alpine.sakamoto.pl/alpine/edge/main\nhttp://alpine.sakamoto.pl/alpine/edge/community" > /etc/apk/repositories \ + && apk update \ + && apk upgrade \ + && apk add sed grep nmap-ncat bash alpine-base chrony file + +WORKDIR /witchcraft +COPY . . + +EXPOSE 25565 + +CMD ["/witchcraft/launch.sh"] diff --git a/launch.sh b/launch.sh new file mode 100755 index 0000000..5204250 --- /dev/null +++ b/launch.sh @@ -0,0 +1,3 @@ +#!/usr/bin/env bash + +ncat -l -p 25565 -k -c "./mc.sh $1"