moviequotebot/Dockerfile
Louis Vallat 720a0596dd Upgraded java to version 16
Signed-off-by: Louis Vallat <louis@louis-vallat.xyz>
2021-05-13 11:32:17 +02:00

13 lines
376 B
Docker

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