This repository has been archived by the owner on Apr 4, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Spigot built in image; readme reworked; docker-compose added
- Loading branch information
Showing
3 changed files
with
69 additions
and
31 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,27 @@ | ||
FROM openjdk:8-jre-alpine | ||
FROM alpine:3.8 AS builder | ||
RUN echo https://dl-3.alpinelinux.org/alpine/v3.8/community > /etc/apk/repositories && \ | ||
echo https://dl-3.alpinelinux.org/alpine/v3.8/main >> /etc/apk/repositories && \ | ||
apk --update add openjdk8-jre git wget ca-certificates | ||
RUN wget -q https://hub.spigotmc.org/jenkins/job/BuildTools/lastSuccessfulBuild/artifact/target/BuildTools.jar | ||
#RUN git config --global --unset core.autocrlf | ||
RUN java -jar BuildTools.jar --rev 1.13.2 | ||
|
||
FROM alpine:3.8 | ||
LABEL maintainer="quentin.mcgaw@gmail.com" \ | ||
description="VPN client container to private internet access servers based on Alpine Linux and OpenVPN" \ | ||
download="53.9MB" \ | ||
size="?MB" \ | ||
description="Lightweight Minecraft Spigot 1.13.2 server container" \ | ||
download="?MB" \ | ||
size="132MB" \ | ||
ram="300MB" \ | ||
cpu_usage="Medium" \ | ||
github="https://github.com/qdm12/spigot-docker" | ||
RUN mkdir /spigot | ||
ENV JAVA_OPTS -Xms512m -Xmx1800m | ||
ENTRYPOINT java -jar /spigot/spigot-1.12.2.jar | ||
CMD ["nogui"] | ||
RUN echo https://dl-3.alpinelinux.org/alpine/v3.8/community > /etc/apk/repositories && \ | ||
echo https://dl-3.alpinelinux.org/alpine/v3.8/main >> /etc/apk/repositories && \ | ||
apk --update add openjdk8-jre | ||
ENV JAVA_OPTS -Xms512m -Xmx1800m -XX:+UseConcMarkSweepGC | ||
COPY --from=builder /spigot-1.13.2.jar . | ||
ENV ACCEPT_EULA=false | ||
VOLUME /spigot | ||
WORKDIR /spigot | ||
ENTRYPOINT [ ! -f ../spigot-1.13.2.jar ] || mv ../spigot-1.13.2.jar ./ && \ | ||
[ "$ACCEPT_EULA" != "true" ] || echo "eula=true" > eula.txt && \ | ||
java -jar spigot-1.13.2.jar nogui |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
version: '3' | ||
services: | ||
spigot: | ||
build: . | ||
image: qmcgaw/spigot | ||
container_name: spigot | ||
volumes: | ||
- ./spigot:/spigot | ||
network_mode: bridge | ||
ports: | ||
- 25565:25565/tcp | ||
environment: | ||
- ACCEPT_EULA=true | ||
restart: always |