+ docker support

meow
Dominika 2022-02-14 01:54:54 +01:00
parent 2d94cc3472
commit d4e8f2c82e
2 changed files with 16 additions and 0 deletions

13
Dockerfile Normal file
View File

@ -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"]

3
launch.sh Executable file
View File

@ -0,0 +1,3 @@
#!/usr/bin/env bash
ncat -l -p 25565 -k -c "./mc.sh $1"