Added a Docker containerisation
This commit is contained in:
15
Dockerfile
Normal file
15
Dockerfile
Normal file
@@ -0,0 +1,15 @@
|
||||
FROM php:apache
|
||||
COPY . /var/www/html/
|
||||
|
||||
# Authorize these folders to be edited
|
||||
RUN chmod -R 777 /var/www/html/storage
|
||||
RUN chmod -R 777 /var/www/html/bootstrap/cache
|
||||
|
||||
# Install ZIP extension
|
||||
RUN apt-get update && \
|
||||
apt-get install -y --no-install-recommends zip libzip-dev
|
||||
RUN pecl install zip && \
|
||||
docker-php-ext-enable zip
|
||||
|
||||
# Allow rewrite
|
||||
RUN a2enmod rewrite
|
||||
Reference in New Issue
Block a user