From 7a14c0e2da6b30df09b775fca8fa8f3ced8a442f Mon Sep 17 00:00:00 2001 From: tchiotludo Date: Wed, 4 Nov 2020 07:36:39 +0100 Subject: [PATCH] docs(readme): run docker image as a non-root user by default close #487 --- Dockerfile | 1 + 1 file changed, 1 insertion(+) diff --git a/Dockerfile b/Dockerfile index f75bca73f..4f4353e11 100644 --- a/Dockerfile +++ b/Dockerfile @@ -3,5 +3,6 @@ FROM openjdk:11-jre-slim WORKDIR /app COPY docker / ENV MICRONAUT_CONFIG_FILES=/app/application.yml +USER 10001 ENTRYPOINT ["docker-entrypoint.sh"] CMD ["./akhq"]