-
Notifications
You must be signed in to change notification settings - Fork 9
/
Dockerfile
32 lines (23 loc) · 959 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
30
31
32
FROM centos:7
ENV LANG=en_US.utf8
RUN yum -y update && \
yum install -y bzip2 fontconfig tar java-1.8.0-openjdk nmap-ncat psmisc gtk3 git \
python-setuptools xorg-x11-xauth wget unzip which \
xorg-x11-server-Xvfb xfonts-100dpi libXfont GConf2 \
xorg-x11-fonts-75dpi xfonts-scalable xfonts-cyrillic \
ipa-gothic-fonts xorg-x11-utils xorg-x11-fonts-Type1 xorg-x11-fonts-misc && \
yum -y clean all
COPY google-chrome.repo /etc/yum.repos.d/google-chrome.repo
RUN yum install -y xorg-x11-server-Xvfb google-chrome-stable
ENV DISPLAY=:99
ENV FABRIC8_USER_NAME=fabric8
RUN useradd --user-group --create-home --shell /bin/false ${FABRIC8_USER_NAME}
ENV HOME=/home/${FABRIC8_USER_NAME}
ENV WORKSPACE=$HOME/che
RUN mkdir $WORKSPACE
COPY . $WORKSPACE
RUN chown -R ${FABRIC8_USER_NAME}:${FABRIC8_USER_NAME} $HOME/*
USER ${FABRIC8_USER_NAME}
WORKDIR $WORKSPACE/
VOLUME /dist
ENTRYPOINT ["/home/fabric8/che/docker-entrypoint.sh"]