mirror of
https://github.com/LuckPerms/LuckPerms.git
synced 2024-11-27 05:05:22 +01:00
Update Dockerfile to use Java 21
This commit is contained in:
parent
7cb60f59fe
commit
f86585c3cc
3
.github/workflows/ci.yml
vendored
3
.github/workflows/ci.yml
vendored
@ -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
|
||||
|
||||
|
@ -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
|
||||
|
@ -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`
|
||||
|
Loading…
Reference in New Issue
Block a user