Skip to content
This repository has been archived by the owner on Apr 4, 2024. It is now read-only.

Commit

Permalink
Updated to 1.14 Spigot and Alpine 3.9
Browse files Browse the repository at this point in the history
  • Loading branch information
qdm12 committed May 9, 2019
1 parent 435af02 commit 0c69de2
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 20 deletions.
3 changes: 2 additions & 1 deletion .dockerignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
readme
*.yml
*.md
*.md
.git
22 changes: 8 additions & 14 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,19 +1,16 @@
ARG ALPINE_VERSION=3.8
ARG ALPINE_VERSION=3.9

FROM alpine:${ALPINE_VERSION} AS builder
ARG SPIGOT_VERSION=1.13.2
RUN V_ALPINE="v$(cat /etc/alpine-release | grep -oE '[0-9]+\.[0-9]+')" && \
echo https://dl-3.alpinelinux.org/alpine/$V_ALPINE/community > /etc/apk/repositories && \
echo https://dl-3.alpinelinux.org/alpine/$V_ALPINE/main >> /etc/apk/repositories && \
apk --update --no-cache --progress -q add openjdk8-jre git wget ca-certificates
ARG SPIGOT_VERSION=1.14
RUN apk --update --no-cache --progress -q add openjdk8-jre git
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 ${SPIGOT_VERSION}
RUN java -Xmx1024M -jar BuildTools.jar --rev ${SPIGOT_VERSION}

FROM alpine:$ALPINE_VERSION
ARG BUILD_DATE
ARG VCS_REF
ARG SPIGOT_VERSION=1.13.2
ARG SPIGOT_VERSION=1.14
LABEL org.label-schema.schema-version="1.0.0-rc1" \
maintainer="quentin.mcgaw@gmail.com" \
org.label-schema.build-date=$BUILD_DATE \
Expand All @@ -25,14 +22,11 @@ LABEL org.label-schema.schema-version="1.0.0-rc1" \
org.label-schema.docker.cmd="docker run -d -p 25565:25565/tcp -v ./spigot:/spigot -e ACCEPT_EULA=true qmcgaw/spigot" \
org.label-schema.docker.cmd.devel="docker run -it --rm -p 25565:25565/tcp -v ./spigot:/spigot -e ACCEPT_EULA=true qmcgaw/spigot" \
org.label-schema.docker.params="ACCEPT_EULA=true or false to accept the EULA license,JAVA_OPTS=Java options to run the Spigot server" \
org.label-schema.version="Spigot 1.13.2" \
image-size="130MB" \
org.label-schema.version="Spigot ${SPIGOT_VERSION}" \
image-size="117MB" \
ram-usage="500MB" \
cpu-usage="Medium"
RUN V_ALPINE="v$(cat /etc/alpine-release | grep -oE '[0-9]+\.[0-9]+')" && \
echo https://dl-3.alpinelinux.org/alpine/$V_ALPINE/community > /etc/apk/repositories && \
echo https://dl-3.alpinelinux.org/alpine/$V_ALPINE/main >> /etc/apk/repositories && \
apk --update --no-cache --progress -q add openjdk8-jre && \
RUN apk --update --no-cache --progress -q add openjdk8-jre && \
rm -rf /var/cache/apk/*
ENV JAVA_OPTS -Xms512m -Xmx1800m -XX:+UseConcMarkSweepGC \
ACCEPT_EULA=false
Expand Down
8 changes: 3 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Spigot Docker

*Lightweight Minecraft Spigot 1.13.2 server container*
*Lightweight Minecraft Spigot 1.14 server container*

[![Spigot Docker](https://github.com/qdm12/spigot-docker/raw/master/readme/title.png)](https://hub.docker.com/r/qmcgaw/spigot)

Expand All @@ -19,11 +19,11 @@

| Image size | RAM usage | CPU usage |
| --- | --- | --- |
| 130MB | 500MB | Medium |
| 117MB | 500MB | Medium |

Based on:

- Alpine Linux 3.8
- Alpine Linux 3.9
- OpenJDK JRE 8

## Setup
Expand All @@ -37,10 +37,8 @@ docker run -d --name=spigot -p 25565:25565/tcp \
-v ./spigot:/spigot -e ACCEPT_EULA=true qmcgaw/spigot
```


or use [docker-compose.yml](https://github.com/qdm12/spigot-docker/blob/master/docker-compose.yml) with:


```bash
docker-compose up -d
```
Expand Down

0 comments on commit 0c69de2

Please sign in to comment.