From f57d9bdbca235ec3f710beb62afc58e659195ec6 Mon Sep 17 00:00:00 2001 From: Fabian Oraze Date: Mon, 9 Sep 2024 16:22:00 +0200 Subject: [PATCH] :bug: fix(build): Fix Profile and Frontend service upstream image issues --- src/frontend/Dockerfile | 5 ++--- src/profile-service/Dockerfile | 4 ++-- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/src/frontend/Dockerfile b/src/frontend/Dockerfile index c44ff218..6a572063 100644 --- a/src/frontend/Dockerfile +++ b/src/frontend/Dockerfile @@ -7,10 +7,9 @@ WORKDIR /usr/src/app # A wildcard is used to ensure both package.json AND package-lock.json are copied # where available (npm@5+) COPY package*.json ./ +COPY yarn.lock ./ -RUN npm install -# If you are building your code for production -# RUN npm ci --only=production +RUN yarn # Bundle app source COPY . . diff --git a/src/profile-service/Dockerfile b/src/profile-service/Dockerfile index c70382de..5f977d9b 100644 --- a/src/profile-service/Dockerfile +++ b/src/profile-service/Dockerfile @@ -4,10 +4,10 @@ COPY --chown=gradle:gradle . /home/gradle/src WORKDIR /home/gradle/src RUN gradle bootJar -FROM youtaqiu/jre-trace:17 +FROM youtaqiu/jre-trace@sha256:1d3cc26f9de63a75ba2f915a8079247b4f1f250a16f219dc322bf2d011c78d55 EXPOSE 8080 COPY --from=builder /home/gradle/src/build/libs/**.jar /app/app.jar RUN apk --no-cache add markdown WORKDIR /app -ENTRYPOINT ["java", "-javaagent:/opentelemetry.jar", "-jar", "app.jar"] +ENTRYPOINT ["java", "-javaagent:/app/lib/opentelemetry.jar", "-jar", "app.jar"]