Add Docker Image
This commit is contained in:
commit
1b60aa6e26
1 changed files with 15 additions and 0 deletions
15
Dockerfile
Normal file
15
Dockerfile
Normal file
|
@ -0,0 +1,15 @@
|
|||
FROM adoptopenjdk:16-openj9
|
||||
|
||||
RUN groupadd -g 322 lavalink && \
|
||||
useradd -r -u 322 -g lavalink lavalink
|
||||
|
||||
USER lavalink
|
||||
|
||||
WORKDIR /opt
|
||||
RUN apt update & \
|
||||
apt install curl & \
|
||||
curl -Lso Lavalink.jar https://github.com/freyacodes/Lavalink/releases/download/3.3.2.5/Lavalink.jar \
|
||||
apt remove curl
|
||||
COPY application.yml .
|
||||
|
||||
ENTRYPOINT ["java", "-Djdk.tls.client.protocols=TLSv1.3", "-Xmx3G", "-jar", "Lavalink.jar"]
|
Reference in a new issue