-
Notifications
You must be signed in to change notification settings - Fork 12
Expand file tree
/
Copy pathDockerfile
More file actions
36 lines (25 loc) · 1.03 KB
/
Dockerfile
File metadata and controls
36 lines (25 loc) · 1.03 KB
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
# Uncomment this for community builds
#FROM quay.io/centos/centos:centos7
# Change base image to use ubi7
FROM registry.access.redhat.com/ubi7:7.9
LABEL io.openshift.sti.scripts-url="image:///usr/local/sti" \
io.openshift.s2i.scripts-url="image:///usr/local/sti" \
Component="nos-sti-base" \
Name="nos-java-base" \
Version="8" \
Release="1" \
maintainer="RedHat SPMM Team <[email protected]>"
USER root
ENV TZ UTC
ADD RH-IT-Root-CA.crt /etc/pki/ca-trust/source/anchors/RH-IT-Root-CA.crt
ADD 2022-IT-Root-CA.pem /etc/pki/ca-trust/source/anchors/2022-IT-Root-CA.pem
RUN update-ca-trust extract
ADD https://github.com/Yelp/dumb-init/releases/download/v1.2.2/dumb-init_1.2.2_amd64 /usr/local/bin/dumb-init
RUN yum -y update && \
yum -y install wget git tar which curl tree java-1.8.0-openjdk-devel net-tools lsof iotop && \
yum clean all && \
rm -rf /var/cache/yum
ADD start.sh /usr/local/bin/start.sh
RUN chmod +x /usr/local/bin/*
USER 1001
ENTRYPOINT ["/usr/local/bin/dumb-init", "/usr/local/bin/start.sh"]