Skip to content

Commit

Permalink
🐛 fix(build): Fix Profile and Frontend service upstream image issues
Browse files Browse the repository at this point in the history
  • Loading branch information
orazefabian committed Sep 9, 2024
1 parent 9065f9b commit f57d9bd
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
5 changes: 2 additions & 3 deletions src/frontend/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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 . .
Expand Down
4 changes: 2 additions & 2 deletions src/profile-service/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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"]

0 comments on commit f57d9bd

Please sign in to comment.