Add extra logging, make builds use BUILDKIT and make the container more secure by using a different user

merge-requests/13/head
Julius 2019-09-10 21:52:04 +02:00
parent 891ae1ae0b
commit 4ffa0021d4
3 changed files with 8 additions and 1 deletions

View File

@ -8,6 +8,7 @@ stages:
variables:
IMAGE_TAG: $CI_REGISTRY_IMAGE:latest
NAME: $CI_PROJECT_NAME
DOCKER_BUILDKIT: 1
build_and_push:
stage: build

View File

@ -10,4 +10,10 @@ FROM openjdk:8-jre-stretch
COPY --from=build /app/build/libs/ottobot.jar /otto.jar
RUN chmod 444 /otto.jar
RUN useradd -r -u 1001 otto
USER otto
CMD java -jar /otto.jar

View File

@ -6,7 +6,7 @@
</appender>
<root level="INFO">
<root level="DEBUG">
<appender-ref ref="STDOUT"/>
<!--<appender-ref ref="FILE"/>-->
</root>