Update Dockerfile to use Java 21

This commit is contained in:
Luck 2024-04-25 22:57:03 +01:00
parent 7cb60f59fe
commit f86585c3cc
No known key found for this signature in database
GPG Key ID: EFA9B3EC5FD90F8B
3 changed files with 8 additions and 5 deletions

View File

@ -86,6 +86,9 @@ jobs:
name: standalone-binary
path: standalone/docker/
- name: Remove version number from jar artifact name
run: mv standalone/docker/LuckPerms-Standalone-*.jar standalone/docker/luckperms-standalone.jar
- name: Set up QEMU
uses: docker/setup-qemu-action@v1

View File

@ -1,5 +1,5 @@
FROM alpine
RUN apk add --no-cache openjdk17 netcat-openbsd
FROM eclipse-temurin:21-alpine
RUN apk add --no-cache netcat-openbsd
# create a simple 'send' command that will allow users
# to run, for example: docker exec <container> send lp info
@ -12,8 +12,7 @@ USER app
# copy jar file into image
WORKDIR /opt/luckperms
COPY LuckPerms-Standalone-*.jar .
RUN mv * luckperms-standalone.jar
COPY luckperms-standalone.jar .
# create volume for data directory
RUN mkdir data

View File

@ -2,4 +2,5 @@
1. Compile with Gradle
2. `cd standalone/loader/build/libs`
3. `docker build . -t luckperms:luckperms -f ../../../docker/Dockerfile`
3. `cp LuckPerms-*.jar luckperms-standalone.jar`
4. `docker build . -t luckperms -f ../../../docker/Dockerfile`