-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
45 lines (32 loc) · 1.26 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
FROM ubuntu:16.04
ENV DEBIAN_FRONTEND=noninteractive
ENV PHP_VERSION=7.4
ENV TERM=ansi
RUN apt-get update --fix-missing
RUN apt-get install -y \
curl wget jq git unzip zip maven default-jdk \
python-software-properties software-properties-common \
build-essential
RUN LC_ALL=C.UTF-8 apt-add-repository -y ppa:ondrej/php
RUN add-apt-repository ppa:canonical-chromium-builds/stage && \
apt-get update
RUN apt-get install chromium-browser -y && \
export CHROME_PATH=$(which chromium-browser)
RUN curl -sL https://deb.nodesource.com/setup_11.x | bash - && \
apt-get install nodejs -y
RUN apt-get install -y php${PHP_VERSION} php${PHP_VERSION}-common \
php${PHP_VERSION}-mysql php${PHP_VERSION}-pdo php${PHP_VERSION}-xml \
php${PHP_VERSION}-cli php${PHP_VERSION}-mbstring php${PHP_VERSION}-curl \
php${PHP_VERSION}-gd composer
RUN export PATH=/usr/bin:/usr/local/bin:$PATH
# Installing AWS CLI
RUN curl "https://s3.amazonaws.com/aws-cli/awscli-bundle.zip" -o "awscli-bundle.zip"
RUN unzip awscli-bundle.zip
RUN ./awscli-bundle/install -b /usr/local/bin/aws
RUN aws --version
RUN rm awscli-bundle.zip
# Add Jenkins user
RUN adduser --disabled-password --gecos "" jenkins && \
usermod -a -G jenkins jenkins
# Upgrade bower
RUN npm i -g bower