Skip to content

Commit d71c49a

Browse files
Ingvordclaude
andcommitted
chore: modernize Dockerfile for Java 21, drop Tango infra assumptions
- Base image: adoptopenjdk/openjdk11 → eclipse-temurin:21-jre-alpine - Remove -DTANGO_HOST and -server (no-op on modern JVM) - Replace deprecated MAINTAINER with LABEL - Config path and port now configurable via SS_CONFIG / SS_PORT env vars Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
1 parent 97fb37c commit d71c49a

1 file changed

Lines changed: 8 additions & 6 deletions

File tree

Dockerfile

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,21 @@
1-
FROM adoptopenjdk/openjdk11:alpine-jre
1+
FROM eclipse-temurin:21-jre-alpine
22

3-
RUN apk add dumb-init
4-
MAINTAINER igor.khokhriakov@hzg.de
3+
RUN apk add --no-cache dumb-init
4+
5+
LABEL maintainer="igor.khokhriakov@hzg.de"
56

67
ARG JAR_FILE
78
ADD target/${JAR_FILE} /app/bin/ss.jar
8-
99
ADD etc /app/etc
1010

1111
RUN addgroup --system javauser && adduser -S -s /bin/false -G javauser javauser
1212
RUN chown -R javauser /app
1313

1414
USER javauser
15-
1615
WORKDIR /app
1716

17+
ENV SS_CONFIG=/app/etc/StatusServer/conf/config.xml
18+
ENV SS_PORT=9190
19+
1820
ENTRYPOINT ["/usr/bin/dumb-init", "--"]
19-
CMD java -jar -server -DTANGO_HOST=$TANGO_HOST /app/bin/ss.jar dev
21+
CMD java -jar /app/bin/ss.jar $SS_CONFIG $SS_PORT

0 commit comments

Comments
 (0)