blob: f2c7edd8e23e9f066ff61192cf0162ef920c5e16 [file] [log] [blame]
sebdetab7f3402019-03-14 11:06:33 +01001FROM openjdk:8u191-jdk-alpine3.9
Determe, Sebastien (sd378r)8bf33432017-08-08 02:49:33 -07002
3MAINTAINER "The Onap Team"
sebdetab7f3402019-03-14 11:06:33 +01004LABEL 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
sebdetab7f3402019-03-14 11:06:33 +010013RUN 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
23USER clamp
Determe, Sebastien (sd378r)8bf33432017-08-08 02:49:33 -070024WORKDIR /opt/clamp/
sebdetab7f3402019-03-14 11:06:33 +010025ENTRYPOINT ["java","-Djava.security.egd=file:/dev/./urandom","-Xms256m", "-Xmx1g", "-jar" ,"./app.jar"]