generated from CDCgov/template
-
Notifications
You must be signed in to change notification settings - Fork 7
Expand file tree
/
Copy pathDockerfile
More file actions
25 lines (19 loc) · 789 Bytes
/
Dockerfile
File metadata and controls
25 lines (19 loc) · 789 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
FROM amazoncorretto:21 as builder
RUN yum update -y && yum clean all
#Copy project config
COPY gradle /usr/src/gradle
COPY gradlew /usr/src/gradlew
COPY settings.gradle /usr/src/settings.gradle
#Copy sources
COPY common-util /usr/src/common-util
COPY post-processing-service /usr/src/post-processing-service
#cd to root directory
WORKDIR /usr/src/
#Build post-processing service along with any required libraries
RUN ./gradlew :post-processing-service:buildNeeded -x test --no-daemon
FROM amazoncorretto:21
RUN yum update -y && yum clean all
COPY --from=builder /usr/src/post-processing-service/build/libs/post-processing-service*.jar post-processing-service.jar
# Run jar
ENTRYPOINT ["java", "-jar", "post-processing-service.jar"]
CMD ["java", "-jar", "post-processing-service.jar"]