velocity-build/Dockerfile
Ryan Voots acc325acf9
All checks were successful
ci/woodpecker/push/build Pipeline was successful
upgrade to jdk 21
2024-04-25 06:54:33 -04:00

34 lines
838 B
Docker

FROM eclipse-temurin:21-jdk
ENV MAX_MEM=1G
RUN apt-get update \
&& DEBIAN_FRONTEND=noninteractive \
apt-get install -y \
imagemagick \
gosu \
sudo \
net-tools \
iputils-ping \
curl wget \
git \
jq \
dos2unix \
mysql-client \
tzdata \
rsync \
nano \
unzip \
knockd \
jq \
&& apt-get clean
RUN addgroup --gid 1000 velocity \
&& adduser --system --shell /bin/false --uid 1000 --ingroup velocity --home /data velocity
RUN mkdir /velocity && chown 1000:1000 /velocity
ADD ./build.sh /tmp
RUN /tmp/build.sh
WORKDIR /data
CMD java -Xms$MAX_MEM -Xmx$MAX_MEM -XX:+UseG1GC -XX:G1HeapRegionSize=4M -XX:+UnlockExperimentalVMOptions -XX:+ParallelRefProcEnabled -XX:+AlwaysPreTouch -XX:MaxInlineLevel=15 -jar /velocity/velocity.jar -- -Dvelocity.packet-decode-logging=true