forked from TekFik/chrome-web
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
33 lines (24 loc) · 1.1 KB
/
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
33
# Pull base image.
FROM tekfik/os:centos7-systemd
MAINTAINER <www.tekfik.com> [email protected]
COPY system /etc/systemd/system/
COPY yum/google-chrome.repo /etc/yum.repos.d/
RUN yum -y install https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm; yum -y update all; \
yum -y install yum-cron tigervnc-server-minimal novnc google-chrome-stable alsa-firmware alsa-lib alsa-tools-firmware; \
yum -y clean all; rm -rf /var/tmp/* /tmp/* /var/cache/yum/*
RUN /sbin/useradd app;cd /etc/systemd/system/multi-user.target.wants; \
ln -sf /etc/systemd/system/tgvnc.service tgvnc.service; \
ln -sf /etc/systemd/system/chrome.service chrome.service; \
ln -sf /etc/systemd/system/novnc.service novnc.service;\
cd /usr/share/novnc; rm -rf index.html
COPY index.html /usr/share/novnc
COPY yum/yum-cron.conf /etc/yum/yum-cron.conf
# Define working directory.
WORKDIR /tmp
# Metadata.
LABEL \
org.label-schema.name="chrome" \
org.label-schema.description="Docker container for Google-Chrome" \
org.label-schema.version="Centos7.7"
#EXPOSE 3000
CMD ["/usr/sbin/init"]