Root for curl

This commit is contained in:
Mylloon 2021-08-08 02:36:53 +02:00
parent b37e819d46
commit 23b498569f

View file

@ -1,10 +1,5 @@
FROM adoptopenjdk:16-openj9 FROM adoptopenjdk:16-openj9
RUN groupadd -g 322 lavalink && \
useradd -r -u 322 -g lavalink lavalink
USER lavalink
WORKDIR /opt WORKDIR /opt
RUN apt update & \ RUN apt update & \
apt install curl & \ apt install curl & \
@ -12,4 +7,9 @@ RUN apt update & \
apt remove curl apt remove curl
COPY application.yml . COPY application.yml .
RUN groupadd -g 322 lavalink && \
useradd -r -u 322 -g lavalink lavalink
USER lavalink
ENTRYPOINT ["java", "-Djdk.tls.client.protocols=TLSv1.3", "-Xmx3G", "-jar", "Lavalink.jar"] ENTRYPOINT ["java", "-Djdk.tls.client.protocols=TLSv1.3", "-Xmx3G", "-jar", "Lavalink.jar"]