-
Notifications
You must be signed in to change notification settings - Fork 5
/
Dockerfile-7.4
79 lines (62 loc) · 1.84 KB
/
Dockerfile-7.4
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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
FROM php:7.4-cli
ARG BUILD_DATE
ARG VCS_REF
ENV COMPOSER_NO_INTERACTION=1
ENV COMPOSER_ALLOW_SUPERUSER=1
ENV NVM_DIR=/root/.nvm
LABEL org.label-schema.build-date=$BUILD_DATE \
org.label-schema.vcs-url="https://github.com/laratools/ci.git" \
org.label-schema.vcs-ref=$VCS_REF \
org.label-schema.schema-version="1.0" \
org.label-schema.vendor="iwader.co.uk" \
org.label-schema.name="laratools-ci" \
org.label-schema.description="Docker for Laravel in a CI environment" \
org.label-schema.url="https://github.com/laratools/ci"
ENV NVM_VERSION v0.35.3
RUN apt-get update
# Required to add yarn package repository
RUN apt-get install -y apt-transport-https gnupg
RUN curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | apt-key add - && \
echo "deb https://dl.yarnpkg.com/debian/ stable main" | tee /etc/apt/sources.list.d/yarn.list
RUN apt-get update && apt-get install -y \
libbz2-dev \
libsodium-dev \
git \
unzip \
wget \
libpng-dev \
libgconf-2-4 \
libfontconfig1 \
chromium \
xvfb \
yarn \
libzip-dev
RUN docker-php-ext-install -j$(nproc) \
bcmath \
bz2 \
calendar \
exif \
gd \
sodium \
pcntl \
pdo_mysql \
shmop \
sockets \
sysvmsg \
sysvsem \
sysvshm \
zip
RUN pecl install redis xdebug-2.8.0
RUN docker-php-ext-enable \
redis \
xdebug
RUN mkdir -p $NVM_DIR && \
curl -o- https://raw.githubusercontent.com/creationix/nvm/${NVM_VERSION}/install.sh | bash
RUN . ~/.nvm/nvm.sh && \
nvm install lts/carbon && \
nvm alias default lts/carbon
COPY ./scripts ./scripts
RUN ./scripts/composer.sh
RUN chmod +rx ./scripts/start.sh
ENTRYPOINT ["/scripts/start.sh"]
CMD ["php", "-a"]