Added dockerfile
Signed-off-by: Louis Vallat <louis@louis-vallat.xyz>
This commit is contained in:
parent
b1bef5b6a5
commit
8038661cd8
@ -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
12
Dockerfile
Normal 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" ]
|
Loading…
Reference in New Issue
Block a user