2020-03-21 01:49:44 +01:00
|
|
|
FROM composer:1.10.1 AS composer
|
2018-09-21 22:11:49 +02:00
|
|
|
|
2019-02-24 14:14:20 +01:00
|
|
|
FROM php:7-stretch
|
2017-09-13 22:27:01 +02:00
|
|
|
|
2019-02-24 14:14:20 +01:00
|
|
|
RUN apt-get update && apt-get install -y libicu-dev git unzip
|
2018-09-21 22:11:49 +02:00
|
|
|
RUN docker-php-ext-configure intl \
|
|
|
|
&& docker-php-ext-install intl
|
2017-09-13 22:27:01 +02:00
|
|
|
|
|
|
|
RUN mkdir /daux && mkdir /build
|
|
|
|
|
|
|
|
WORKDIR /daux
|
|
|
|
|
2018-09-21 22:11:49 +02:00
|
|
|
COPY --from=composer /usr/bin/composer /usr/bin/composer
|
2017-09-13 22:27:01 +02:00
|
|
|
|
|
|
|
# Copy files
|
2019-02-24 14:21:52 +01:00
|
|
|
COPY composer.json /daux/composer.json
|
|
|
|
COPY composer.lock /daux/composer.lock
|
|
|
|
|
|
|
|
RUN composer install --prefer-dist --no-ansi --no-dev --no-interaction --no-progress --no-scripts --optimize-autoloader
|
|
|
|
|
2017-09-13 22:27:01 +02:00
|
|
|
COPY bin/ /daux/bin/
|
|
|
|
COPY libs/ /daux/libs/
|
|
|
|
COPY templates/ /daux/templates/
|
|
|
|
COPY themes/ /daux/themes/
|
2019-09-23 22:10:07 +02:00
|
|
|
COPY daux_libraries/ /daux/daux_libraries/
|
2017-09-13 22:27:01 +02:00
|
|
|
COPY global.json /daux/global.json
|
2018-06-05 22:40:38 +02:00
|
|
|
COPY index.php /daux/index.php
|
2017-09-13 22:27:01 +02:00
|
|
|
|
|
|
|
RUN ln -s /daux/bin/daux /usr/local/bin/daux
|
|
|
|
|
|
|
|
WORKDIR /build
|
|
|
|
|
|
|
|
EXPOSE 8085
|
|
|
|
|
|
|
|
CMD ["daux"]
|