Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

🐛 fix(build): Fix Profile and Frontend service upstream image issues #86

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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"]
Loading