Skip to content

Commit

Permalink
Merge pull request #151 from catenax-ng/legal_info
Browse files Browse the repository at this point in the history
chore: Updated legal distribution information
  • Loading branch information
almadigabor authored May 27, 2024
2 parents 2bddc72 + 5ea13ab commit 253e942
Showing 1 changed file with 7 additions and 8 deletions.
15 changes: 7 additions & 8 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -22,16 +22,15 @@
FROM maven:3.8.7-eclipse-temurin-17 AS builder

# copy the project files
COPY ./pom.xml /pom.xml
COPY . /autosetup/

WORKDIR /autosetup

# build all dependencies
RUN mvn dependency:go-offline -B

# copy your other files
COPY ./src ./src

# build for release
RUN mvn clean install -Dmaven.test.skip=true
RUN mvn clean install -Dmaven.test.skip=true

FROM eclipse-temurin:17.0.11_9-jdk

Expand All @@ -50,12 +49,12 @@ RUN adduser \
--uid "$UID" \
"$USER"

USER $USERNAME
USER $USER

WORKDIR /autosetup
WORKDIR /

# copy over the built artifact from the maven image
COPY --from=builder target/*.jar ./app.jar
COPY --from=builder /autosetup/target/*.jar ./app.jar

EXPOSE 9999
# set the startup command to run your binary
Expand Down

0 comments on commit 253e942

Please sign in to comment.