Last active
June 29, 2019 17:03
-
-
Save siketyan/2bfbd936a30fe14c1d935d887bd72a10 to your computer and use it in GitHub Desktop.
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
version: '3' | |
services: | |
spigot: | |
build: docker/spigot | |
container_name: spigot | |
ports: | |
- 45565:25565 | |
volumes: | |
- ./app:/app:z |
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
FROM openjdk:8-jre-alpine | |
MAINTAINER Naoki Ikeguchi <siketyan@sikeserver.com> | |
ENV MINECRAFT_VERSION=1.13.2 | |
RUN apk --update add curl git && \ | |
rm -rf /var/cache/apk/* | |
RUN mkdir -p /src && \ | |
mkdir -p /build && \ | |
mkdir -p /app | |
WORKDIR /src | |
RUN curl -L https://hub.spigotmc.org/jenkins/job/BuildTools/lastSuccessfulBuild/artifact/target/BuildTools.jar -o BuildTools.jar && \ | |
java -jar BuildTools.jar --rev ${MINECRAFT_VERSION} --output-dir /build && \ | |
rm -rf /src | |
WORKDIR /build | |
RUN mv /build/spigot-${MINECRAFT_VERSION}.jar /app/spigot.jar | |
RUN ls -al /app | |
WORKDIR /app | |
#CMD ["java", "-jar", "spigot.jar"] | |
VOLUME /app | |
RUN ls -al /app | |
EXPOSE 25565 |
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
/opt/minecraft | |
├── app | |
├── docker | |
│ └── spigot | |
│ ├── Dockerfile | |
│ └── start.sh | |
└── docker-compose.yml |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment