-
Notifications
You must be signed in to change notification settings - Fork 4
/
Dockerfile
34 lines (21 loc) · 1.05 KB
/
Dockerfile
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
26
27
28
29
30
31
32
33
34
ARG JDK_TAG=11-jdk-slim
ARG JRE_TAG=${JDK_TAG}
ARG IMAGE=echoparklabs/geometry-api-java
FROM ${IMAGE}:${JDK_TAG} as builder
MAINTAINER David Raleigh <[email protected]>
# https://github.com/rocker-org/shiny/issues/19#issuecomment-308357402
RUN apt-get update || apt-get update
COPY ./ /opt/src/geometry-service-java
WORKDIR /opt/src/geometry-service-java
RUN ./gradlew build install
FROM ${IMAGE}:${JRE_TAG}
# https://github.com/rocker-org/shiny/issues/19#issuecomment-308357402
RUN apt-get update || apt-get update
WORKDIR /opt/src/geometry-service-java/build/install
COPY --from=builder /opt/src/geometry-service-java/build/install .
RUN chmod +x /opt/src/geometry-service-java/build/install/epl-geometry-service/bin/geometry-operators-server
EXPOSE 8980
#TODO, I should be able to make a test image and copy from that, right?
WORKDIR /opt/src/geometry-service-java/build/test-results
COPY --from=builder /opt/src/geometry-service-java/build/test-results .
CMD /opt/src/geometry-service-java/build/install/epl-geometry-service/bin/geometry-operators-server