Apache server with php for Raspberry Pi
124
#DOCKERFILE
FROM ubuntu:latest
ENV TZ=America/Bogota
RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone &&
apt-get update && apt-get upgrade -y && apt-get install -y apache2 php &&
echo ServerName apache2 >> /etc/apache2/apache2.conf
EXPOSE 80
CMD ["apache2ctl", "-D", "FOREGROUND"]
#SCRIPT
#!/bin/bash
#docker build -t ubuntu/apache-php -f /home/pi/Docker/images/ubuntu-apache-php/Dockerfile .
docker run -dp 4000:80 -v /home/pi/crystal/html:/var/www/html --restart unless-stopped --name Http -h http ubuntu/apache-php
Content type
Image
Digest
Size
77.9 MB
Last updated
over 7 years ago
docker pull jorgenita/ubuntu-apache-php