forked from passbolt/passbolt_docker
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
76 lines (65 loc) · 1.68 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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
FROM alpine:3.5
MAINTAINER diego@passbolt.com
ENV PASSBOLT_VERSION 1.6.0
ENV PASSBOLT_URL https://github.com/passbolt/passbolt_api/archive/v${PASSBOLT_VERSION}.tar.gz
ARG BASE_PHP_DEPS="php5-curl \
php5-common \
php5-gd \
php5-intl \
php5-json \
php5-mcrypt \
php5-memcache \
php5-mysql \
php5-xsl \
php5-fpm \
php5-phar \
php5-posix \
php5-xml \
php5-openssl \
php5-zlib \
php5-ctype \
php5-pdo \
php5-pdo_mysql \
php5-pear"
ARG PHP_GNUPG_DEPS="php5-dev \
make \
gcc \
g++ \
libc-dev \
pkgconfig \
re2c \
gpgme-dev \
autoconf \
file"
RUN apk update &&\
apk add $BASE_PHP_DEPS \
bash \
sed \
ca-certificates \
curl \
tar \
libpcre32 \
recode \
libxml2 \
gpgme \
gnupg1 \
mysql-client \
openssl \
nginx
RUN apk add $PHP_GNUPG_DEPS && \
#https://bugs.alpinelinux.org/issues/5378
sed -i "s/ -n / /" $(which pecl) && \
pecl install gnupg && \
echo "extension=gnupg.so" > /etc/php5/conf.d/gnupg.ini && \
apk del $PHP_GNUPG_DEPS
RUN curl -sS https://getcomposer.org/installer | php && \
mv composer.phar /usr/local/bin/composer
RUN mkdir /var/www/passbolt && curl -sSL $PASSBOLT_URL | \
tar zxf - -C /var/www/passbolt --strip-components 1 && \
chown -R nginx:nginx /var/www/passbolt && \
chmod -R +w /var/www/passbolt/app/tmp && \
chmod +w /var/www/passbolt/app/webroot/img/public
COPY conf/passbolt.conf /etc/nginx/conf.d/default.conf
COPY bin/docker-entrypoint.sh /docker-entrypoint.sh
EXPOSE 80 443
CMD ["/docker-entrypoint.sh"]