add rewrite rule to apache for frontend

This commit is contained in:
Bilal Catic
2018-09-20 02:51:49 +02:00
parent d8c38ec089
commit 0065b25fef
2 changed files with 43 additions and 0 deletions

View File

@@ -8,6 +8,8 @@ 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