presenceirb/Dockerfile
Louis Vallat 8038661cd8 Added dockerfile
Signed-off-by: Louis Vallat <louis@louis-vallat.xyz>
2020-11-26 22:57:08 +01:00

13 lines
356 B
Docker

FROM openjdk:15-alpine
COPY ./build/libs/app.jar /usr/src/MoviesQuoteBot/presenceirb.jar
WORKDIR /usr/src/PresencEirb/
RUN addgroup --system presenceirb && \
adduser --system --no-create-home --ingroup presenceirb presenceirb && \
mkdir logs && \
chown presenceirb:presenceirb -R .
USER presenceirb
CMD [ "java", "-jar", "presenceirb.jar" ]