-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
53 lines (45 loc) · 1.13 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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
# Pull base image
FROM ubuntu:16.04
LABEL maintainer="Sergiy Slobodyanyk <nedved198725@gmail.com>"
USER root
# Update and upgrade all packages
RUN \
apt-get update -y
#apt-get -y upgrade
# Install main packages
RUN \
apt-get install -y \
#openjdk-8-jdk \
#openjdk-8-jre \
#maven \
#git \
xvfb \
wget \
libappindicator1 \
fonts-liberation \
libxss1 \
xdg-utils \
libasound2 \
libnspr4 \
libnss3
# Install Google Chrome v. 79.0.3945.88
RUN \
wget https://www.slimjet.com/chrome/download-chrome.php?file=files/79.0.3945.88/google-chrome-stable_current_amd64.deb -O chrome_stable_current_amd64.deb && \
ls -a && \
dpkg -i chrome_stable_current_amd64.deb && \
apt --fix-broken install && \
rm chrome_stable_current_amd64.deb
ENV JAVA_HOME=/usr/lib/jvm/java-8-openjdk-amd64
ENV JAVA_VERSION=8u232
ENV JAVA_DEBIAN_VERSION=8u232-b09-1~deb9u1-b09
ENV CA_CERTIFICATES_JAVA_VERSION=20190931+nmu1
ENV GIT_HOME=/usr/bin/git
ENV MAVEN_HOME=/usr/share/maven
ENV XVFB=/usr/bin
ENV GOOGLE-CHROME=/usr/bin/google-chrome
# Define volume directory
#VOLUME ["/var/jenkins_home"]
# Define working directory
#WORKDIR /var/jenkins_home
#EXPOSE 8080 50000
USER root