-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathDockerfile
50 lines (45 loc) · 1.92 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
# CircleCI primary docker image to run within
FROM circleci/php:7.2-apache-node-browsers
# Build-time metadata as defined at http://label-schema.org
ARG BUILD_DATE
ARG VCS_REF
LABEL org.label-schema.build-date=$BUILD_DATE \
org.label-schema.name="Monica CircleCI Tests Docker Image" \
org.label-schema.description="Monica custom-built docker image for CircleCI 2.0 jobs. Includes all tools needed to test monica." \
org.label-schema.url="https://monicahq.com" \
org.label-schema.vcs-ref=$VCS_REF \
org.label-schema.vcs-url="https://github.com/monicahq/centralperk" \
org.label-schema.vendor="Monica" \
org.label-schema.version=$VCS_REF \
org.label-schema.schema-version="1.0"
# Install packages
RUN set -ex && cd ~ && \
sudo apt-get update && \
sudo apt-get install -y \
mysql-client && \
sudo apt-get clean -y
# Install Chrome
#RUN set -ex && cd ~ && \
# sudo apt-get install lsb-release && \
# sudo apt-get clean -y && \
# curl -L -o google-chrome.deb https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb && \
# sudo dpkg -i google-chrome.deb && \
# sudo sed -i 's|HERE/chrome"|HERE/chrome" --disable-setuid-sandbox --no-sandbox|g' /opt/google/chrome/google-chrome && \
# rm -f google-chrome.deb
# Install php extensions
RUN set -ex && cd ~ && \
sudo apt-get install -y libpng-dev libxml2-dev libfreetype6-dev libjpeg62-turbo-dev && \
sudo apt-get clean -y && \
sudo docker-php-ext-configure gd --with-freetype-dir=/usr/include/ --with-jpeg-dir=/usr/include/ && \
sudo docker-php-ext-install -j$(nproc) \
json \
iconv \
bcmath \
gd \
pdo_mysql \
mysqli \
soap \
mbstring && \
sudo apt-get remove -y \
libicu-dev
CMD ["/bin/sh"]