forked from sclorg/rhscl-dockerfiles
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
31 lines (18 loc) · 746 Bytes
/
Dockerfile
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
FROM rhel6
RUN yum install -y --setopt=tsflags=nodocs yum-utils && \
yum-config-manager --enable rhel-server-rhscl-6-rpms && \
yum-config-manager --enable rhel-6-server-optional-rpms && \
yum clean all
RUN yum install -y --setopt=tsflags=nodocs devtoolset-4 && yum clean all
ENV BASH_ENV=/etc/profile.d/cont-env.sh
ADD ./enabledevtoolset-4.sh /usr/share/cont-layer/common/env/enabledevtoolset-4.sh
ADD ./usr /usr
ADD ./etc /etc
ADD ./root /root
ENV HOME /home/default
RUN groupadd -r default -f -g 1001 && \
useradd -u 1001 -r -g default -d ${HOME} -s /sbin/nologin \
-c "Default Application User" default
USER 1001
ENTRYPOINT ["/usr/bin/container-entrypoint"]
CMD ["container-usage"]