FROM nextcloud | |
RUN echo "ServerName localhost" >> /etc/apache2/apache2.conf | |
EXPOSE 8080 | |
RUN sed -i 's/Listen 80/Listen 8080/' /etc/apache2/ports.conf && \ | |
sed -i 's/:80/:8080/' /etc/apache2/sites-available/000-default.conf | |
RUN chmod 755 /var/log/apache2 && chown -R www-data:www-data /var/log/apache2 | |
CMD ["apache2-foreground"] |