-
Notifications
You must be signed in to change notification settings - Fork 5
/
Dockerfile_RHEL
31 lines (24 loc) · 1.23 KB
/
Dockerfile_RHEL
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
FROM registry.access.redhat.com/ubi8/openjdk-11 as BUILD
USER root
WORKDIR /app
COPY . ./
RUN mvn --batch-mode --errors --fail-fast \
--define maven.javadoc.skip=true \
--define skipTests=true \
--activate-profiles no-download \
install
FROM registry.access.redhat.com/ubi8/openjdk-11-runtime as runstage
USER 1001
WORKDIR /app
LABEL maintainer="Jan Speckamp <j.speckamp@52north.org>" \
org.opencontainers.image.title="52°North Helgoland Adapters" \
org.opencontainers.image.description="52°North Helgoland Adapters" \
org.opencontainers.image.licenses="GPLv2" \
org.opencontainers.image.url="https://github.com/52North/sensorweb-server-helgoland-adapters" \
org.opencontainers.image.vendor="52°North GmbH" \
org.opencontainers.image.source="https://github.com/52North/sensorweb-server-helgoland-adapters.git" \
org.opencontainers.image.authors="Jan Speckamp <j.speckamp@52north.org>"
COPY --from=BUILD /app/app/target/unpacked/BOOT-INF/lib /app/lib
COPY --from=BUILD /app/app/target/unpacked/META-INF /app/META-INF
COPY --from=BUILD /app/app/target/unpacked/BOOT-INF/classes /app
ENTRYPOINT ["java", "-cp" ,".:lib/*", "org.n52.sensorweb.server.helgoland.adapters.Application"]