Skip to content

Commit

Permalink
chore(Dockerfile): use common pagopa image for the openjdk in the Doc…
Browse files Browse the repository at this point in the history
…kerfile
  • Loading branch information
jacopocarlini committed Oct 9, 2024
1 parent d125391 commit 6c7d6ef
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 45 deletions.
4 changes: 3 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -38,4 +38,6 @@ yarn.lock
# Terraform
**/.terraform/
**/*.prod
**/report.json
**/report.json

**/.env
15 changes: 1 addition & 14 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -14,15 +14,7 @@ COPY --from=buildtime /build/target/*.jar application.jar
RUN java -Djarmode=layertools -jar application.jar extract


FROM eclipse-temurin:17-jre@sha256:0adcf8486107fbd706de4b4fdde64c2d2e3ead4c689b2fb7ae4947010e1f00b4

VOLUME /tmp
WORKDIR /app

# https://github.com/microsoft/ApplicationInsights-Java/releases
ADD --chown=spring:spring https://github.com/microsoft/ApplicationInsights-Java/releases/download/3.6.0/applicationinsights-agent-3.6.0.jar /applicationinsights-agent.jar
COPY --chown=spring:spring docker/applicationinsights.json ./applicationinsights.json
COPY --chown=spring:spring docker/run.sh ./run.sh
FROM ghcr.io/pagopa/docker-base-springboot-openjdk17:v2.1.0@sha256:7093cd54f2beb7bdb1cca3b33cb94e06eeb5750027cdb96f7bebb274118a5629

COPY --chown=spring:spring --from=builder dependencies/ ./
COPY --chown=spring:spring --from=builder snapshot-dependencies/ ./
Expand All @@ -31,8 +23,3 @@ COPY --chown=spring:spring --from=builder snapshot-dependencies/ ./
RUN true
COPY --chown=spring:spring --from=builder spring-boot-loader/ ./
COPY --chown=spring:spring --from=builder application/ ./

EXPOSE 8080

RUN chmod +x ./run.sh
ENTRYPOINT ["./run.sh"]
19 changes: 0 additions & 19 deletions docker/applicationinsights.json

This file was deleted.

11 changes: 0 additions & 11 deletions docker/run.sh

This file was deleted.

0 comments on commit 6c7d6ef

Please sign in to comment.