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"]