moviequotebot/Dockerfile

13 lines
376 B
Docker
Raw Permalink Normal View History

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" ]