-
Notifications
You must be signed in to change notification settings - Fork 31
/
Copy pathDockerfile
34 lines (23 loc) · 1.08 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
FROM maven:3-jdk-8-alpine AS BUILD
RUN apk add --no-cache git
WORKDIR /usr/src/app
COPY . /usr/src/app
RUN mvn --batch-mode --errors --fail-fast \
--define maven.javadoc.skip=true \
--define skipTests=true install
FROM jetty:jre8-alpine
ARG SERVER_VERSION=1.2.0-SNAPSHOT
COPY --from=BUILD /usr/src/app/webapp/target/webapp-${SERVER_VERSION} /var/lib/jetty/webapps/ROOT
COPY ./docker/logback.xml /var/lib/jetty/webapps/ROOT/WEB-INF/classes/
VOLUME /var/data/envirocar/previews
HEALTHCHECK --interval=5s --timeout=20s --retries=3 \
CMD wget http://localhost:8080/ -q -O - > /dev/null 2>&1
LABEL maintainer="Christian Autermann <[email protected]>" \
org.label-schema.schema-version="1.0" \
org.label-schema.name="enviroCar server" \
org.label-schema.description="enviroCar server" \
org.label-schema.license="AGPLv3" \
org.label-schema.url="https://envirocar.org/" \
org.label-schema.vendor="52°North GmbH" \
org.label-schema.vcs-url="https://github.com/enviroCar/enviroCar-server.git" \
org.label-schema.version=${SERVER_VERSION}