Added dockerfile

Signed-off-by: Louis Vallat <louis@louis-vallat.xyz>
This commit is contained in:
Louis Vallat 2020-11-26 22:57:08 +01:00
parent b1bef5b6a5
commit 8038661cd8
2 changed files with 13 additions and 1 deletions

View File

@ -58,7 +58,7 @@ package:
- .gradle - .gradle
artifacts: artifacts:
paths: paths:
- app/build/libs/moviesquotebot.jar - app/build/libs/app.jar
release: release:
stage: release stage: release

12
Dockerfile Normal file
View File

@ -0,0 +1,12 @@
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" ]