Skip to content
Merged
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
7 changes: 6 additions & 1 deletion java/grus-velocity/src/docker/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,13 +1,18 @@
# syntax=docker/dockerfile:1.7
FROM eclipse-temurin:25.0.3_9-jre

# BuildKit applies ADD --chmod to parent directories it creates, which made /opt/velocity 0644 and
# unsearchable for the runtime user. Create the directory first with an explicit mode.
RUN install -d -m 0755 /opt/velocity

# Velocity 4.3.1 (PaperMC, STABLE build 45). The checksum makes the build fail if the download changes.
ADD --chmod=0644 --checksum=sha256:0844bcabdcdb4f5b875906fd4c3365bc1bb76918e42bc595ed88ad195258dd75 \
https://fill-data.papermc.io/v1/objects/0844bcabdcdb4f5b875906fd4c3365bc1bb76918e42bc595ed88ad195258dd75/velocity-4.3.1-45.jar \
/opt/velocity/velocity.jar

RUN useradd -u 10001 -r -M velocity \
&& mkdir -p /data /opt/velocity \
&& chmod 0755 /opt/velocity \
&& mkdir -p /data \
&& chown 10001:10001 /data

COPY velocity.toml /opt/velocity/velocity.toml
Expand Down