-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
47 lines (40 loc) · 1.6 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
FROM php:7.4-fpm-alpine
ARG BRANCH
ARG COMMIT
ARG DATE
ARG URL
ARG VERSION
LABEL org.label-schema.schema-version="1.0" \
org.label-schema.build-date=$DATE \
org.label-schema.vendor="Zeigren" \
org.label-schema.name="zeigren/phabricator" \
org.label-schema.url="https://hub.docker.com/r/zeigren/phabricator" \
org.label-schema.version=$VERSION \
org.label-schema.vcs-url=$URL \
org.label-schema.vcs-branch=$BRANCH \
org.label-schema.vcs-ref=$COMMIT
RUN apk update \
&& apk add --no-cache bash openssh-server openssh-keygen git \
git-daemon subversion freetype libpng libjpeg-turbo libzip \
py-pygments sudo sed procps zlib imagemagick \
&& apk add --no-cache --virtual .build-deps \
$PHPIZE_DEPS freetype-dev libpng-dev libjpeg-turbo-dev libzip-dev \
&& docker-php-ext-configure gd --enable-gd --with-freetype --with-jpeg \
&& docker-php-ext-configure opcache --enable-opcache \
&& docker-php-ext-install gd opcache mysqli pcntl zip \
&& pecl install apcu \
&& docker-php-ext-enable apcu \
&& apk del .build-deps \
&& mv $PHP_INI_DIR/php.ini-production $PHP_INI_DIR/php.ini \
&& adduser -D git \
&& passwd -u git \
&& adduser -D phduser \
&& ln -s /usr/local/bin/php /bin/php \
&& ln -s /usr/libexec/git-core/git-http-backend /usr/bin/git-http-backend \
&& mkdir -p /usr/src/docker-phab/
COPY env_secrets_expand.sh docker-entrypoint.sh wait-for.sh /usr/local/bin/
RUN chmod +x /usr/local/bin/env_secrets_expand.sh \
&& chmod +x /usr/local/bin/docker-entrypoint.sh \
&& chmod +x /usr/local/bin/wait-for.sh
ENTRYPOINT ["/usr/local/bin/docker-entrypoint.sh"]
CMD ["php-fpm", "-F"]