-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
18 lines (16 loc) · 886 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
FROM registry.access.redhat.com/rhel7-atomic
ENV JRE_DOWNLOAD_URL=http://download.oracle.com/otn-pub/java/jdk/8u171-b11/512cd62ec5174c3487ac17c61aaa89e8/jre-8u171-linux-x64.rpm
RUN curl -L -O -H "Cookie: oraclelicense=accept-securebackup-cookie" $JRE_DOWNLOAD_URL && rpm -i jre*.rpm && rm -Rf jre*.rpm
RUN microdnf install tar --enablerepo=rhel-7-server-rpms && \
microdnf update; microdnf clean all
RUN mkdir -p /deployments && chmod -R a+rwX /deployments
LABEL io.k8s.description="Platform for running Java (fatjar) with Oracle Java" \
io.k8s.display-name="Java S2I binary builder 1.0" \
io.openshift.expose-services="8080:http" \
io.openshift.tags="builder,oraclejava,java,microservices,fatjar" \
io.openshift.s2i.scripts-url=image:///usr/local/s2i
COPY ./s2i/bin/ /usr/local/s2i
RUN chmod -R 777 /usr/local/s2i
USER 1001
EXPOSE 8080
CMD ["usage"]