-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
38 lines (24 loc) · 1.44 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
35
36
37
38
ARG TAG=latest
FROM geogrpc/proj:${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-chain
WORKDIR /opt/src/geometry-chain
RUN ./gradlew build install
# Weirdest. works in docker on mac but not in linux
# RUN tar -xvf /opt/src/geometry-chain/epl-geometry-service/build/distributions/epl-geometry-service.tar
RUN tar -xf /opt/src/geometry-chain/epl-geometry-service/build/distributions/epl-geometry-service.tar -C /opt/src/geometry-chain/epl-geometry-service/build/distributions
FROM geogrpc/proj:${TAG}
# https://github.com/rocker-org/shiny/issues/19#issuecomment-308357402
RUN apt-get update || apt-get update
WORKDIR /opt/src/geometry-chain/build/install
COPY --from=builder /opt/src/geometry-chain/epl-geometry-service/build/distributions/epl-geometry-service ./
RUN chmod +x /opt/src/geometry-chain/build/install/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-chain/build/test-results
COPY --from=builder /opt/src/geometry-chain/epl-geometry-service/build/test-results .
COPY --from=builder /opt/src/geometry-chain/epl-geometry-api/build/test-results .
COPY --from=builder /opt/src/geometry-chain/epl-geometry-api-ex/build/test-results .
CMD /opt/src/geometry-chain/build/install/bin/geometry-operators-server