-
Notifications
You must be signed in to change notification settings - Fork 25
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
Showing
4 changed files
with
16 additions
and
10 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,21 +1,21 @@ | ||
FROM node:10.9-alpine AS web-build | ||
|
||
WORKDIR /build | ||
ADD react-web /build | ||
WORKDIR /home | ||
ADD react-web /home | ||
|
||
RUN apk add yarn | ||
RUN yarn && yarn build | ||
RUN find build | ||
|
||
FROM openjdk:8u171-jdk-alpine3.8 AS java-build | ||
|
||
WORKDIR /build | ||
COPY --from=web-build /build/build /build/src/main/resources/public | ||
ADD . /build | ||
WORKDIR /home | ||
COPY --from=web-build /home/build /home/src/main/resources/public | ||
ADD . /home | ||
RUN ./gradlew build | ||
|
||
FROM openjdk:8u171-jre-alpine3.8 | ||
COPY --from=java-build /build/build/libs/graphql-demo-service.jar /app/graphql-demo-service.jar | ||
COPY --from=java-build /home/build/libs/graphql-demo-service.jar /app/graphql-demo-service.jar | ||
|
||
EXPOSE 8080 | ||
CMD java -jar /app/graphql-demo-service.jar |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,6 @@ | ||
#Wed Sep 12 17:40:13 CEST 2018 | ||
distributionBase=GRADLE_USER_HOME | ||
distributionPath=wrapper/dists | ||
distributionUrl=https\://services.gradle.org/distributions/gradle-4.9-bin.zip | ||
zipStoreBase=GRADLE_USER_HOME | ||
zipStorePath=wrapper/dists | ||
distributionUrl=https\://services.gradle.org/distributions/gradle-4.9-all.zip |
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