We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9fd4a67 commit a8d57f6Copy full SHA for a8d57f6
test/fixtures/docker/java/Dockerfile
@@ -3,6 +3,11 @@ FROM openjdk:16-alpine3.13
3
RUN mkdir -p /usr/src/app
4
WORKDIR /usr/src/app
5
6
+# We run the app with a non-root user, because this is a common pattern especially
7
+# in Java apps, and we need to ensure the injected file permissions support it:
8
+RUN adduser --uid 5000 -D appuser && chown -R appuser /usr/src/app
9
+USER appuser
10
+
11
COPY . .
12
13
RUN javac Main.java
0 commit comments