-
Notifications
You must be signed in to change notification settings - Fork 66
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
06f25e7
commit 5122ebd
Showing
1 changed file
with
2 additions
and
3 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 |
---|---|---|
|
@@ -9,8 +9,7 @@ RUN if [ "${RELEASE_MODE}" = true ]; then \ | |
-Dorg.gradle.project.version=${APP_VERSION}; \ | ||
else gradle build --no-build-cache --exclude-task test -Dorg.gradle.project.version=${APP_VERSION}; fi | ||
|
||
# For ARM build use flag: `--platform linux/arm64` | ||
FROM --platform=$BUILDPLATFORM amazoncorretto:21.0.4 | ||
FROM amazoncorretto:21.0.4 | ||
LABEL version=${APP_VERSION} description="EPAM Report portal. Main API Service" maintainer="Andrei Varabyeu <[email protected]>, Hleb Kanonik <[email protected]>" | ||
ARG APP_VERSION=${APP_VERSION} | ||
ENV APP_DIR=/usr/app | ||
|
@@ -20,4 +19,4 @@ COPY --from=build $APP_DIR/build/libs/service-api-*exec.jar . | |
VOLUME ["/tmp"] | ||
EXPOSE 8080 | ||
# ENTRYPOINT exec java ${JAVA_OPTS} -jar ${APP_DIR}/service-api-*exec.jar | ||
ENTRYPOINT ["sh", "-c", "java ${JAVA_OPTS} -jar ${APP_DIR}/service-api-*exec.jar"] | ||
ENTRYPOINT ["sh", "-c", "java ${JAVA_OPTS} -jar ${APP_DIR}/service-api-*exec.jar"] |