Skip to content

Commit

Permalink
Harmonized Dockerfiles.
Browse files Browse the repository at this point in the history
  • Loading branch information
ch-braun committed Jan 23, 2024
1 parent 595d59d commit a023f04
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,21 +2,21 @@
#
# SPDX-License-Identifier: Apache-2.0

FROM azul/zulu-openjdk-alpine:17
FROM eclipse-temurin:17-jre-alpine

RUN apk add --update \
curl \
&& rm -rf /var/cache/apk/*
RUN apk add --update \
curl \
&& rm -rf /var/cache/apk/*

RUN addgroup --gid 1000 jumper && adduser --uid 1000 -G jumper -D jumper --no-create-home
RUN addgroup -g 1000 -S app
RUN adduser -u 1000 -D -H -S -G app app

USER 1000:1000

EXPOSE 8080 8082

COPY target/*.jar /usr/share/jumper.jar
COPY target/*.jar /usr/share/app.jar

WORKDIR /usr/share/

CMD java $JVM_OPTS -jar /usr/share/jumper.jar

CMD java $JVM_OPTS -jar /usr/share/app.jar

0 comments on commit a023f04

Please sign in to comment.