File tree Expand file tree Collapse file tree 3 files changed +7
-7
lines changed
Expand file tree Collapse file tree 3 files changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -11,16 +11,16 @@ ENV JAVA_FLAGS="-Dlog4j2.formatMsgNoLookups=true -XX:+UseG1GC -XX:+ParallelRefPr
1111ENV PAPERMC_FLAGS="--nojline"
1212ENV MEM_SIZE="1G"
1313
14- VOLUME /opt/minecraft/data
15- WORKDIR /opt/minecraft/data
16-
1714COPY --chmod=755 ./install-gosu.sh ./install-paper.sh ./docker-entrypoint.sh /usr/local/bin/
1815
1916RUN yum install -y curl wget jq shadow-utils && \
2017 useradd -r -u ${PUID} mc && \
21- # mkdir -p /opt/minecraft && \
18+ mkdir -p /opt/minecraft/data && \
2219 install-gosu.sh && \
2320 install-paper.sh
2421
22+ VOLUME /opt/minecraft/data
23+ WORKDIR /opt/minecraft/data
24+
2525ENTRYPOINT ["docker-entrypoint.sh" ]
2626CMD java -jar -Xms${MEM_SIZE} -Xmx${MEM_SIZE} ${JAVA_FLAGS} /opt/minecraft/server.jar ${PAPERMC_FLAGS} nogui
Original file line number Diff line number Diff line change 33![ Build Status] ( https://img.shields.io/github/actions/workflow/status/c3kay/paper-docker/build.yml )
44![ MC Version] ( https://img.shields.io/badge/dynamic/yaml?url=https%3A%2F%2Fraw.githubusercontent.com%2Fc3kay%2Fpaper-docker%2Fmaster%2F.github%2Fworkflows%2Fbuild.yml&query=%24.jobs.build.env.MC_VERSION&label=minecraft )
55
6-
76This is a simple docker image for a Minecraft PaperMC Server running on Amazon Corretto.
87
98## Installation
@@ -16,7 +15,8 @@ docker pull ghcr.io/c3kay/paper-docker:<mc-version>
1615
1716## Configuration & Usage
1817
19- All data and configs are located in the ` /data ` folder. You can map a docker volume or local directory to persist this folder.
18+ All data and configs are located in the ` /opt/minecraft/data ` folder.
19+ You can map a docker volume or local directory to persist this folder.
2020
2121The following environment variables can be set:
2222- ` PUID ` : The UID of the user running the server (default: ` 1000 ` ).
Original file line number Diff line number Diff line change @@ -9,7 +9,7 @@ services:
99 - " 25565:25565/tcp"
1010 - " 25565:25565/udp"
1111 volumes :
12- - " ./data:/data:rw"
12+ - " ./data:/opt/minecraft/ data:rw"
1313 environment :
1414 MEM_SIZE : 2G
1515 PUID : 1001
You can’t perform that action at this time.
0 commit comments