Skip to content
This repository has been archived by the owner on Sep 30, 2022. It is now read-only.

This is a docker container running the Paper Minecraft Server and based off Google's distroless Java container, making it lighter and more secure.

License

Notifications You must be signed in to change notification settings

guillaumedsde/papermc-docker-distroless

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PaperMC Minecraft Server distroless docker container

Gitlab pipeline status Docker Automated build Docker Image Size (latest by date) Docker Pulls Docker Stars GitHub stars

This is a docker container running the Paper Minecraft Server and based off Google's distroless Java container, making it lighter and more secure.

PaperMC runs with aikar's optimized flags in order to try and improve the performance.

How to run

Launch the container, this will create the PaperMC directory in your current directory

optional: set -Xms2G -Xmx2G to the Amount of RAM to allocate to PaperMC

docker run

$ docker run \
    -v $(pwd)/papermc:/papermc \
    -e JAVA_TOOL_OPTIONS="-Xms2G -Xmx2G" \
    -p 25565:25565 \
    guillaumedsde/papermc-docker-distroless:latest

docker-compose

version: '3.3'
services:
    papermc:
        volumes:
            - '<data_dir>/papermc:/papermc'
        environment:
            - 'JAVA_TOOL_OPTIONS=-Xms2G -Xmx2G'
        ports:
            - '25565:25565'
        image: guillaumedsde/papermc-docker-distroless:latest

TODO

  • Run as non-root user (Docker volumes do not support this yet)

About

This is a docker container running the Paper Minecraft Server and based off Google's distroless Java container, making it lighter and more secure.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published