Skip to content

Commit 24e86b9

Browse files
committed
fixes
1 parent ea06163 commit 24e86b9

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

Dockerfile

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,16 +11,16 @@ ENV JAVA_FLAGS="-Dlog4j2.formatMsgNoLookups=true -XX:+UseG1GC -XX:+ParallelRefPr
1111
ENV PAPERMC_FLAGS="--nojline"
1212
ENV MEM_SIZE="1G"
1313

14-
VOLUME /opt/minecraft/data
15-
WORKDIR /opt/minecraft/data
16-
1714
COPY --chmod=755 ./install-gosu.sh ./install-paper.sh ./docker-entrypoint.sh /usr/local/bin/
1815

1916
RUN 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+
2525
ENTRYPOINT ["docker-entrypoint.sh"]
2626
CMD java -jar -Xms${MEM_SIZE} -Xmx${MEM_SIZE} ${JAVA_FLAGS} /opt/minecraft/server.jar ${PAPERMC_FLAGS} nogui

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
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-
76
This 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

2121
The following environment variables can be set:
2222
- `PUID`: The UID of the user running the server (default: `1000`).

compose.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)