Initial commit: UK Data Services website
This commit is contained in:
22
Dockerfile
Normal file
22
Dockerfile
Normal file
@@ -0,0 +1,22 @@
|
||||
FROM php:8.1-apache
|
||||
|
||||
# Enable Apache modules
|
||||
RUN a2enmod rewrite headers
|
||||
|
||||
# Set ServerName to avoid warnings
|
||||
RUN echo "ServerName localhost" >> /etc/apache2/apache2.conf
|
||||
|
||||
# Configure Apache for our application
|
||||
COPY apache-config.conf /etc/apache2/sites-available/000-default.conf
|
||||
|
||||
# Copy application files
|
||||
COPY . /var/www/html/
|
||||
|
||||
# Set proper permissions
|
||||
RUN chown -R www-data:www-data /var/www/html
|
||||
RUN chmod -R 755 /var/www/html
|
||||
|
||||
# Create logs directory
|
||||
RUN mkdir -p /var/www/html/logs && chown www-data:www-data /var/www/html/logs
|
||||
|
||||
EXPOSE 80
|
||||
Reference in New Issue
Block a user