-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathDockerfile-platform
36 lines (32 loc) · 1.53 KB
/
Dockerfile-platform
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
ARG reg=registry.simplicite.io
ARG tag
FROM ${reg}/server:$tag
ARG date
ARG branch
ARG version
ARG patchlevel
ARG revision
ARG commitid
ARG template
LABEL org.label-schema.name="simplicite-platform-$version" \
org.label-schema.vendor="Simplicite Software" \
org.label-schema.license="https://docs.simplicite.io/license.md" \
org.label-schema.build-date="$date" \
org.opencontainers.image.ref.name="simplicite-platform-$version" \
org.opencontainers.image.title="Simplicite platform $version" \
org.opencontainers.image.description="Simplicite platform $version" \
org.opencontainers.image.vendor="Simplicite Software" \
org.opencontainers.image.url="https://www.simplicite.io" \
org.opencontainers.image.version="$version.$patchlevel.$revision" \
org.opencontainers.image.revision="$commitid" \
org.opencontainers.image.documentation="https://docs.simplicite.io" \
org.opencontainers.image.licenses="https://docs.simplicite.io/license.md" \
org.opencontainers.image.created="$date"
# HEALTHCHECK --interval=60s --timeout=3s --start-period=300s CMD curl --fail http://localhost:8080/ping || exit 1
# Add the webapp
ADD --chown=simplicite:simplicite $template/app /usr/local/tomcat/webapps/ROOT
# Pre-create potentially mountable workdirs to avoid ownership issues on volumes
RUN cd webapps/ROOT/WEB-INF && \
mkdir git src bin build cache jar log maven recyclebin tmp && \
chown simplicite:simplicite src bin build cache jar log maven recyclebin tmp && \
rm -f jetty-env.xml