Skip to content

Commit 61308ff

Browse files
committed
temporary added git
1 parent 613155c commit 61308ff

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

Dockerfile

+4-2
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,8 @@ FROM php:7-fpm-alpine3.7
22

33
LABEL MAINTAINER [email protected]
44

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
67

78
ARG PHP_EXTENSIONS="gd \
89
intl \
@@ -31,6 +32,7 @@ RUN apk add --no-cache $PHP_GNUPG_BUILD_DEPS \
3132
libxslt-dev \
3233
libmcrypt-dev \
3334
supervisor \
35+
git \
3436
&& pecl install gnupg redis mcrypt-snapshot \
3537
&& docker-php-ext-install -j4 $PHP_EXTENSIONS \
3638
&& docker-php-ext-enable $PHP_EXTENSIONS gnupg redis mcrypt \
@@ -41,7 +43,7 @@ RUN apk add --no-cache $PHP_GNUPG_BUILD_DEPS \
4143
RUN mkdir -p /var/www/passbolt \
4244
&& curl -sSL $PASSBOLT_URL | tar zxf - -C /var/www/passbolt --strip-components 1 \
4345
&& cd /var/www/passbolt \
44-
&& composer install \
46+
&& composer install --no-dev --optimize-autoloader \
4547
&& chown -R www-data:www-data /var/www/passbolt \
4648
&& chmod 775 $(find /var/www/passbolt/tmp -type d) \
4749
&& chmod 664 $(find /var/www/passbolt/tmp -type f) \

0 commit comments

Comments
 (0)