chore: ajouter Dockerfile, docker-compose et .dockerignore
This commit is contained in:
1 parent
ea460db104
commit
8f1576aa6c
3 files changed
+35
No files matched your search
+18
@@ -0,0 +1,18 @@
|
||||
FROM php:8.4-apache
|
||||
|
||||
RUN a2enmod rewrite
|
||||
|
||||
RUN printf '<VirtualHost *:80>\n\
|
||||
DocumentRoot /var/www/html/public\n\
|
||||
<Directory /var/www/html/public>\n\
|
||||
AllowOverride All\n\
|
||||
Require all granted\n\
|
||||
</Directory>\n\
|
||||
</VirtualHost>\n' > /etc/apache2/sites-available/000-default.conf
|
||||
|
||||
WORKDIR /var/www/html
|
||||
COPY . .
|
||||
|
||||
RUN mkdir -p database && chown -R www-data:www-data /var/www/html
|
||||
|
||||
EXPOSE 80
|
||||
Reference in new issue
Block a user