Add rcon-cli
This commit is contained in:
parent
bca6dd8673
commit
9001e9198c
1 changed files with 19 additions and 0 deletions
19
Dockerfile
19
Dockerfile
|
@ -1,9 +1,28 @@
|
||||||
|
# Builder container
|
||||||
|
#############################
|
||||||
|
## BUILDER ##
|
||||||
|
## Builds rcon-cli for us. ##
|
||||||
|
#############################
|
||||||
|
FROM ghcr.io/archlinux/archlinux:latest AS builder
|
||||||
|
|
||||||
|
RUN pacman -Syu --noconfirm go base-devel git
|
||||||
|
RUN mkdir /builder /builder/bin
|
||||||
|
RUN git clone https://github.com/gorcon/rcon-cli /builder/rcon-cli
|
||||||
|
WORKDIR /builder/rcon-cli
|
||||||
|
RUN go build -ldflags "-s -w -X main.ServiceVersion=mcsd-builder" -o /builder/bin/rcon ./cmd/gorcon/main.go
|
||||||
|
|
||||||
|
####################################
|
||||||
|
## MAIN ##
|
||||||
|
## This container will be used to ##
|
||||||
|
## run a Minecraft server. ##
|
||||||
|
####################################
|
||||||
FROM ghcr.io/archlinux/archlinux:latest
|
FROM ghcr.io/archlinux/archlinux:latest
|
||||||
LABEL org.opencontainers.image.authors="JeremyStarTM <jeremystartm@staropensource.de>"
|
LABEL org.opencontainers.image.authors="JeremyStarTM <jeremystartm@staropensource.de>"
|
||||||
|
|
||||||
RUN pacman -Syu --noconfirm jre17-openjdk jre11-openjdk jre8-openjdk
|
RUN pacman -Syu --noconfirm jre17-openjdk jre11-openjdk jre8-openjdk
|
||||||
RUN mkdir /app
|
RUN mkdir /app
|
||||||
ADD entrypoint.sh /app/entrypoint.sh
|
ADD entrypoint.sh /app/entrypoint.sh
|
||||||
|
COPY --from=builder /builder/bin/rcon /usr/bin/rcon
|
||||||
|
|
||||||
STOPSIGNAL SIGTERM
|
STOPSIGNAL SIGTERM
|
||||||
EXPOSE 25565 25565/tcp
|
EXPOSE 25565 25565/tcp
|
||||||
|
|
Loading…
Reference in a new issue