mirror of
https://github.com/lucko/LuckPerms.git
synced 2025-08-22 06:02:49 +02:00
Update Dockerfile to use Java 21
This commit is contained in:
3
.github/workflows/ci.yml
vendored
3
.github/workflows/ci.yml
vendored
@@ -86,6 +86,9 @@ jobs:
|
|||||||
name: standalone-binary
|
name: standalone-binary
|
||||||
path: standalone/docker/
|
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
|
- name: Set up QEMU
|
||||||
uses: docker/setup-qemu-action@v1
|
uses: docker/setup-qemu-action@v1
|
||||||
|
|
||||||
|
@@ -1,5 +1,5 @@
|
|||||||
FROM alpine
|
FROM eclipse-temurin:21-alpine
|
||||||
RUN apk add --no-cache openjdk17 netcat-openbsd
|
RUN apk add --no-cache netcat-openbsd
|
||||||
|
|
||||||
# create a simple 'send' command that will allow users
|
# create a simple 'send' command that will allow users
|
||||||
# to run, for example: docker exec <container> send lp info
|
# to run, for example: docker exec <container> send lp info
|
||||||
@@ -12,8 +12,7 @@ USER app
|
|||||||
|
|
||||||
# copy jar file into image
|
# copy jar file into image
|
||||||
WORKDIR /opt/luckperms
|
WORKDIR /opt/luckperms
|
||||||
COPY LuckPerms-Standalone-*.jar .
|
COPY luckperms-standalone.jar .
|
||||||
RUN mv * luckperms-standalone.jar
|
|
||||||
|
|
||||||
# create volume for data directory
|
# create volume for data directory
|
||||||
RUN mkdir data
|
RUN mkdir data
|
||||||
|
@@ -2,4 +2,5 @@
|
|||||||
|
|
||||||
1. Compile with Gradle
|
1. Compile with Gradle
|
||||||
2. `cd standalone/loader/build/libs`
|
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`
|
||||||
|
Reference in New Issue
Block a user