13 lines
376 B
Docker
13 lines
376 B
Docker
FROM openjdk:15-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" ]
|