Skip to content
This repository was archived by the owner on Aug 31, 2019. It is now read-only.
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 26 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
FROM maven

RUN apt update && apt install -y patch rake

# Set user and email for patches
ARG GIT_EMAIL="[email protected]"
ARG GIT_USER="user"
RUN git config --global user.email "$GIT_EMAIL" && git config --global user.name "$GIT_NAME"

WORKDIR /tmp/SportBukkit

# Copy the repo so we can build it
COPY . .

# Build and Clean
RUN rake \
&& mkdir /minecraft \
&& mv build/CraftBukkit/target/sportbukkit*.jar /minecraft/sportbukkit.jar \
&& rm -Rf /tmp \
&& rm -Rf /root/.m2/repository

WORKDIR /minecraft

EXPOSE 25565

CMD ["java", "-Xmx1G", "-jar", "sportbukkit.jar"]
10 changes: 10 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
---
# Create the Docker image for SportBukkit

version: '2'

services:
sportbukkit:
container_name: "sportbukkit"
build: .
image: ewized/sportbukkit