Skip to content

Commit

Permalink
Update Dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
ankurkumarz authored Jun 1, 2024
1 parent 8d8e9b5 commit f974761
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Stage 1 for Build
FROM adoptopenjdk/openjdk11:alpine as buildimage
FROM adoptopenjdk/openjdk17:alpine as buildimage

# SSH key as a build argument, if passed
ARG SSH_PRIVATE_KEY
Expand All @@ -26,7 +26,7 @@ RUN cd /opt/cloudcost && ls -l /opt/cloudcost && \
./gradlew assemble

# Stage 2 for Docker Image
FROM adoptopenjdk/openjdk11:alpine
FROM adoptopenjdk/openjdk17:alpine
RUN apk --no-cache add ca-certificates git openssh && \
mkdir -p /opt/cloudcost
RUN addgroup -S clouduser && adduser -S clouduser -G clouduser
Expand All @@ -37,4 +37,4 @@ COPY --from=buildimage /opt/cloudcost/build/libs/CloudCostInspector.jar /opt/clo
USER clouduser:clouduser

EXPOSE 8080
ENTRYPOINT ["java","-jar","/opt/cloudcost/CloudCostInspector.jar"]
ENTRYPOINT ["java","-jar","/opt/cloudcost/CloudCostInspector.jar"]

0 comments on commit f974761

Please sign in to comment.