Bkl / Dockerfile
Hydui's picture
Upload 17 files
34664bd verified
Raw
History Blame Contribute Delete
547 Bytes
FROM php:8.2-apache
# Copy source code to the apache web root
COPY . /var/www/html/
# Enable apache rewrite module if needed
RUN a2enmod rewrite
# Set permissions
RUN chown -R www-data:www-data /var/www/html
# Expose port 7860 (standard for Hugging Face Spaces)
EXPOSE 7860
# Configure Apache to listen on port 7860
RUN sed -i 's/Listen 80/Listen 7860/' /etc/apache2/ports.conf
RUN sed -i 's/<VirtualHost \*:80>/<VirtualHost *:7860>/' /etc/apache2/sites-available/000-default.conf
# Start Apache in the foreground
CMD ["apache2-foreground"]