Use icecon instead

This commit is contained in:
TheiLLeniumStudios
2023-02-06 14:28:10 +00:00
parent b38f4f06ed
commit 46ae755028
2 changed files with 14 additions and 7 deletions
+12 -5
View File
@@ -3,12 +3,19 @@ FROM alpine:3.17
RUN apk add --no-cache curl tar git
ARG RCON_VERSION="0.10.2"
# Use icecon instead. For some reason rcon-cli doesn't send a valid command
#ARG RCON_VERSION="0.10.2"
#
#RUN curl -LO https://github.com/gorcon/rcon-cli/releases/download/v${RCON_VERSION}/rcon-${RCON_VERSION}-amd64_linux.tar.gz && \
# tar -xvf rcon-${RCON_VERSION}-amd64_linux.tar.gz && \
# mv rcon-${RCON_VERSION}-amd64_linux/rcon /usr/local/bin/ && \
# rm -rf rcon-${RCON_VERSION}-amd64_linux*
RUN curl -LO https://github.com/gorcon/rcon-cli/releases/download/v${RCON_VERSION}/rcon-${RCON_VERSION}-amd64_linux.tar.gz && \
tar -xvf rcon-${RCON_VERSION}-amd64_linux.tar.gz && \
mv rcon-${RCON_VERSION}-amd64_linux/rcon /usr/local/bin/ && \
rm -rf rcon-${RCON_VERSION}-amd64_linux*
ARG ICECON_VERSION="v1.0.0"
RUN curl -LO https://github.com/icedream/icecon/releases/download/${ICECON_VERSION}/icecon_linux_amd64 && \
mv icecon_linux_amd64 /usr/local/bin/icecon && \
chmod +x /usr/local/bin/icecon
# Copies your code file from your action repository to the filesystem path `/` of the container
COPY entrypoint.sh /entrypoint.sh