Files
old-new-wiaas/frontend.dockerfile

17 lines
465 B
Plaintext
Raw Permalink Normal View History

2018-06-14 16:49:28 +02:00
FROM php:7.0-apache
2018-07-26 19:55:40 +02:00
ARG API_URL
2018-07-30 16:20:51 +02:00
ENV REACT_APP_API_URL ${API_URL}
2018-06-14 16:49:28 +02:00
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
2018-06-14 16:49:28 +02:00
WORKDIR /home/wiaas/frontend
2018-06-18 17:01:37 +02:00
RUN npm install && npm rebuild node-sass --force && npm run build
RUN cp -r build/* /var/www/html/