2020-11-26 22:57:08 +01:00
|
|
|
FROM openjdk:15-alpine
|
|
|
|
|
2020-11-26 23:03:36 +01:00
|
|
|
COPY ./app/build/libs/app.jar /usr/src/MoviesQuoteBot/presenceirb.jar
|
2020-11-26 22:57:08 +01:00
|
|
|
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" ]
|