Skip to content

Commit 6b34fe0

Browse files
committed
fix: APEX-022 switch from eclipse-temurin:17-jre-alpine to 17-jre
The alpine variant lacks multi-arch support. Use Debian-based image and update user creation commands accordingly.
1 parent 481842f commit 6b34fe0

2 files changed

Lines changed: 3 additions & 4 deletions

File tree

argus/APEX-022-25/app/Dockerfile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ COPY src ./src
66

77
RUN mvn clean package -DskipTests
88

9-
FROM eclipse-temurin:17-jre-alpine
9+
FROM eclipse-temurin:17-jre
1010

1111
ARG FLAG=FLAG{default_flag_replace_me}
1212

@@ -22,8 +22,8 @@ COPY --from=builder /build/target/*.jar app.jar
2222
RUN mkdir -p /app/uploads && chmod 755 /app/uploads
2323

2424
# Create non-root user
25-
RUN addgroup -g 1001 -S appgroup && \
26-
adduser -S appuser -u 1001 -G appgroup && \
25+
RUN groupadd -g 1001 appgroup && \
26+
useradd -r -u 1001 -g appgroup appuser && \
2727
chown -R appuser:appgroup /app
2828

2929
USER appuser

argus/APEX-022-25/docker-compose.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@ version: '3.8'
22

33
services:
44
app:
5-
platform: linux/amd64
65
build:
76
context: ./app
87
args:

0 commit comments

Comments
 (0)