blob: c47d6229e7847655f177ef7d9f861f5db0aafedf [file] [log] [blame]
sebdetc7e23ea2019-04-29 18:19:39 +02001FROM openjdk:8u191-jdk-alpine3.9
Determe, Sebastien (sd378r)8bf33432017-08-08 02:49:33 -07002
3MAINTAINER "The Onap Team"
sebdetc7e23ea2019-04-29 18:19:39 +02004LABEL Description="This immage contains alpine, openjdk 11 and clamp"
Determe, Sebastien (sd378r)8bf33432017-08-08 02:49:33 -07005
6ARG http_proxy
7ARG https_proxy
8ENV HTTP_PROXY=$http_proxy
9ENV HTTPS_PROXY=$https_proxy
10ENV http_proxy=$HTTP_PROXY
11ENV https_proxy=$HTTPS_PROXY
12
sebdetc7e23ea2019-04-29 18:19:39 +020013RUN addgroup onap && adduser -D -G onap clamp
sebdet9021eac2019-02-15 18:33:19 +010014VOLUME /opt/clamp/config
15RUN mkdir /var/log/onap
16RUN chmod a+rwx /var/log/onap
17
Determe, Sebastien (sd378r)e0d94f62018-05-25 15:14:08 +020018COPY onap-clamp/clamp.jar /opt/clamp/app.jar
sebdet9021eac2019-02-15 18:33:19 +010019RUN chmod 700 /opt/clamp/app.jar
20
sebdet9021eac2019-02-15 18:33:19 +010021RUN chown -R clamp:onap /opt/clamp
22
sebdetc7e23ea2019-04-29 18:19:39 +020023RUN apk add fontconfig
24RUN apk add ttf-dejavu
25
26RUN ln -s /usr/lib/libfontconfig.so.1 /usr/lib/libfontconfig.so && \
27 ln -s /lib/libuuid.so.1 /usr/lib/libuuid.so.1 && \
28 ln -s /lib/libc.musl-x86_64.so.1 /usr/lib/libc.musl-x86_64.so.1
29
30ENV LD_LIBRARY_PATH /usr/lib
31
sebdet9021eac2019-02-15 18:33:19 +010032USER clamp
Determe, Sebastien (sd378r)8bf33432017-08-08 02:49:33 -070033WORKDIR /opt/clamp/
sebdetab7f3402019-03-14 11:06:33 +010034ENTRYPOINT ["java","-Djava.security.egd=file:/dev/./urandom","-Xms256m", "-Xmx1g", "-jar" ,"./app.jar"]