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 481842f commit 6b34fe0Copy full SHA for 6b34fe0
2 files changed
argus/APEX-022-25/app/Dockerfile
@@ -6,7 +6,7 @@ COPY src ./src
6
7
RUN mvn clean package -DskipTests
8
9
-FROM eclipse-temurin:17-jre-alpine
+FROM eclipse-temurin:17-jre
10
11
ARG FLAG=FLAG{default_flag_replace_me}
12
@@ -22,8 +22,8 @@ COPY --from=builder /build/target/*.jar app.jar
22
RUN mkdir -p /app/uploads && chmod 755 /app/uploads
23
24
# Create non-root user
25
-RUN addgroup -g 1001 -S appgroup && \
26
- adduser -S appuser -u 1001 -G appgroup && \
+RUN groupadd -g 1001 appgroup && \
+ useradd -r -u 1001 -g appgroup appuser && \
27
chown -R appuser:appgroup /app
28
29
USER appuser
argus/APEX-022-25/docker-compose.yml
@@ -2,7 +2,6 @@ version: '3.8'
2
3
services:
4
app:
5
- platform: linux/amd64
build:
context: ./app
args:
0 commit comments