File tree 1 file changed +4
-2
lines changed
1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -2,7 +2,8 @@ FROM php:7-fpm-alpine3.7
2
2
3
3
LABEL MAINTAINER
[email protected]
4
4
5
- ENV PASSBOLT_URL https://github.com/passbolt/passbolt_api/archive/develop.tar.gz
5
+ ENV PASSBOLT_VERSION 2.0.0-rc1
6
+ ENV PASSBOLT_URL https://github.com/passbolt/passbolt_api/archive/v${PASSBOLT_VERSION}.tar.gz
6
7
7
8
ARG PHP_EXTENSIONS="gd \
8
9
intl \
@@ -31,6 +32,7 @@ RUN apk add --no-cache $PHP_GNUPG_BUILD_DEPS \
31
32
libxslt-dev \
32
33
libmcrypt-dev \
33
34
supervisor \
35
+ git \
34
36
&& pecl install gnupg redis mcrypt-snapshot \
35
37
&& docker-php-ext-install -j4 $PHP_EXTENSIONS \
36
38
&& docker-php-ext-enable $PHP_EXTENSIONS gnupg redis mcrypt \
@@ -41,7 +43,7 @@ RUN apk add --no-cache $PHP_GNUPG_BUILD_DEPS \
41
43
RUN mkdir -p /var/www/passbolt \
42
44
&& curl -sSL $PASSBOLT_URL | tar zxf - -C /var/www/passbolt --strip-components 1 \
43
45
&& cd /var/www/passbolt \
44
- && composer install \
46
+ && composer install --no-dev --optimize-autoloader \
45
47
&& chown -R www-data:www-data /var/www/passbolt \
46
48
&& chmod 775 $(find /var/www/passbolt/tmp -type d) \
47
49
&& chmod 664 $(find /var/www/passbolt/tmp -type f) \
You can’t perform that action at this time.
0 commit comments