fix: Add nginx + htaccess files

This commit is contained in:
Andras Bacsai
2022-03-20 15:03:24 +01:00
parent 541aa76b64
commit eae1ea21d6
7 changed files with 27 additions and 1 deletions

View File

@@ -16,6 +16,7 @@ const createDockerfile = async (data, image): Promise<void> => {
Dockerfile.push('RUN a2enmod rewrite');
Dockerfile.push('WORKDIR /var/www/html');
Dockerfile.push(`COPY .${baseDirectory || ''} /var/www/html`);
Dockerfile.push(`COPY /.htaccess /var/www/html/.htaccess`);
Dockerfile.push(`EXPOSE 80`);
Dockerfile.push('CMD ["apache2-foreground"]');
Dockerfile.push('RUN chown -R www-data /var/www/html');