daux.io/Dockerfile

35 lignes
783 B
Docker
Brut Vue normale Historique

FROM composer:1.7.2 AS composer
FROM php:7-alpine
2017-09-13 22:27:01 +02:00
RUN apk info && apk add --no-cache unzip icu-dev
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
COPY --from=composer /usr/bin/composer /usr/bin/composer
2017-09-13 22:27:01 +02:00
# Copy files
COPY bin/ /daux/bin/
COPY libs/ /daux/libs/
COPY templates/ /daux/templates/
COPY themes/ /daux/themes/
COPY tipuesearch/ /daux/tipuesearch/
COPY global.json /daux/global.json
COPY composer.json /daux/composer.json
COPY composer.lock /daux/composer.lock
COPY index.php /daux/index.php
2017-09-13 22:27:01 +02:00
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
RUN ln -s /daux/bin/daux /usr/local/bin/daux
WORKDIR /build
EXPOSE 8085
CMD ["daux"]