17 lines
465 B
Docker
17 lines
465 B
Docker
FROM php:7.0-apache
|
|
|
|
ARG API_URL
|
|
ENV REACT_APP_API_URL ${API_URL}
|
|
|
|
RUN apt-get update && apt-get install -y git unzip gnupg
|
|
RUN curl -sL https://deb.nodesource.com/setup_8.x | bash -
|
|
RUN apt-get install -y nodejs
|
|
|
|
COPY frontend /home/wiaas/frontend
|
|
RUN a2enmod rewrite
|
|
COPY docker/frontend/000-default.conf /etc/apache2/sites-available
|
|
|
|
WORKDIR /home/wiaas/frontend
|
|
RUN npm install && npm rebuild node-sass --force && npm run build
|
|
RUN cp -r build/* /var/www/html/
|