skip manual building process

This commit is contained in:
GotPPay
2018-06-11 19:02:26 +02:00
parent c21b30d288
commit 06bea89fbc
7 changed files with 2717 additions and 2680 deletions

35
php.dockerfile Normal file
View File

@@ -0,0 +1,35 @@
FROM php:7.0-apache
ENV TEST_URL=http://localhost:8000/api-wiaas \
PROD_URL=http://localhost:8000/api-wiaas \
DEV_URL=http://localhost:8000/api-wiaas
COPY docker/php/apache2.conf /etc/apache2/
COPY docker/php/composer.phar /usr/local/bin/composer
RUN chmod 755 /usr/local/bin/composer
COPY api-wiaas /home/wiaas/api-wiaas
COPY client-wiaas /home/wiaas/client-wiaas
WORKDIR /home/wiaas/api-wiaas/
RUN composer install
WORKDIR /home/wiaas
RUN cp -r api-wiaas /var/www/html/
RUN apt-get update
RUN apt-get upgrade -y
RUN apt-get install -y gnupg
RUN curl -sL https://deb.nodesource.com/setup_8.x | bash -
RUN apt-get install -y nodejs
WORKDIR /home/wiaas/client-wiaas
RUN npm rebuild node-sass --force
RUN npm install && npm run build
RUN cp -r build/* /var/www/html/
RUN docker-php-ext-install pdo pdo_mysql mysqli
RUN a2enmod rewrite