-
Notifications
You must be signed in to change notification settings - Fork 12
/
Dockerfile
32 lines (24 loc) · 933 Bytes
/
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
#FROM alpine/git as gitstage
#WORKDIR /app
#RUN git clone https://github.com/52north/arctic-sea \
# && cd arctic-sea \
# && git checkout master
#RUN git clone https://github.com/52north/sensorweb-server-db-model \
# && cd sensorweb-server-db-model \
# && git checkout develop
FROM maven:3.6.1-jdk-8-slim as buildstage
WORKDIR /app
#COPY --from=gitstage /app /app
COPY . /app/sensorweb-server-sta/
#RUN cd arctic-sea \
# && mvn clean install
#RUN cd sensorweb-server-db-model \
# && mvn clean install
RUN cd sensorweb-server-sta \
&& mvn package
FROM adoptopenjdk/openjdk8:alpine-slim as runstage
ARG DEPENDENCY=/app/sensorweb-server-sta/app/target/unpacked
COPY --from=buildstage ${DEPENDENCY}/BOOT-INF/lib /app/lib
COPY --from=buildstage ${DEPENDENCY}/META-INF /app/META-INF
COPY --from=buildstage ${DEPENDENCY}/BOOT-INF/classes /app
ENTRYPOINT ["java","-cp","app:app/lib/*","org.n52.sta.Application"]