-
Notifications
You must be signed in to change notification settings - Fork 18
/
Dockerfile
56 lines (38 loc) · 1.65 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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
FROM flaviostutz/maven-prewarmed AS BUILD
ADD /src/ /build/
RUN mvn package
# ADD /pom.xml /build
# ADD /skylight-commons-core /build/skylight-commons-core
# RUN cd /build/skylight-commons-core && mvn package
# ADD /skylight-autopilot /build/skylight-autopilot
# RUN cd /build/skylight-autopilot && mvn package
# ADD /skylight-vsm /build/skylight-vsm
# RUN cd /build/skylight-vsm && mvn package
# ADD /skylight-vsm-simulation /build/skylight-vsm-simulation
# RUN cd /build/skylight-vsm-simulation && mvn package
# ADD /skylight-autopilot-simulation /build/skylight-autopilot-simulation
# RUN cd /build/skylight-autopilot-simulation && mvn package
# ADD /skylight-commons-ui /build/skylight-commons-ui
# RUN cd /build/skylight-commons-ui && mvn package
# ADD /skylight-cucs /build/skylight-cucs
# RUN cd /build/skylight-cucs && mvn package
FROM openjdk:14-alpine3.10
RUN apk add libx11
RUN apk add libxext
RUN apk add libxrender
RUN apk add libxtst-dev
RUN apk add freetype-dev
RUN apk add fontconfig
RUN apk add ttf-dejavu
RUN mkdir /app
WORKDIR /app
COPY --from=BUILD /build/skylight-commons-core/target/skylight-commons-core* /app/
COPY --from=BUILD /build/skylight-autopilot/target/skylight-autopilot* /app/
COPY --from=BUILD /build/skylight-vsm/target/skylight-vsm* /app/
COPY --from=BUILD /build/skylight-vsm-simulation/target/skylight-vsm-simulation* /app/
COPY --from=BUILD /build/skylight-autopilot-simulation/target/skylight-autopilot-simulation* /app/
COPY --from=BUILD /build/skylight-commons-ui/target/skylight-commons-ui* /app/
COPY --from=BUILD /build/skylight-cucs/target/skylight-cucs* /app/
RUN ls /app
ADD /startup.sh /
ENTRYPOINT [ "/startup.sh" ]