forked from microservices-demo/carts
-
Notifications
You must be signed in to change notification settings - Fork 196
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #12 from udbc/test
Test
- Loading branch information
Showing
6 changed files
with
52 additions
and
44 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,24 +1,9 @@ | ||
FROM weaveworksdemos/msd-java:jre-latest | ||
FROM openjdk:18-jdk-alpine | ||
|
||
WORKDIR /usr/src/app | ||
COPY *.jar ./app.jar | ||
|
||
RUN chown -R ${SERVICE_USER}:${SERVICE_GROUP} ./app.jar | ||
RUN chown -R root:root ./app.jar | ||
|
||
USER ${SERVICE_USER} | ||
|
||
ARG BUILD_DATE | ||
ARG BUILD_VERSION | ||
ARG COMMIT | ||
|
||
LABEL org.label-schema.vendor="Weaveworks" \ | ||
org.label-schema.build-date="${BUILD_DATE}" \ | ||
org.label-schema.version="${BUILD_VERSION}" \ | ||
org.label-schema.name="Socks Shop: Cart" \ | ||
org.label-schema.description="REST API for Cart service" \ | ||
org.label-schema.url="https://github.com/microservices-demo/carts" \ | ||
org.label-schema.vcs-url="github.com:microservices-demo/carts.git" \ | ||
org.label-schema.vcs-ref="${COMMIT}" \ | ||
org.label-schema.schema-version="1.0" | ||
|
||
ENTRYPOINT ["/usr/local/bin/java.sh","-jar","./app.jar", "--port=80"] | ||
USER root | ||
ENTRYPOINT ["java","-jar","./app.jar", "--port=8080"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters