Sign inSign up

jorgenita/ubuntu-apache-php

By jorgenita

Updated over 7 years ago

Apache server with php for Raspberry Pi

Image
0

124

jorgenita/ubuntu-apache-php repository overview

#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

Tag summary

Content type

Image

Digest

Size

77.9 MB

Last updated

over 7 years ago

docker pull jorgenita/ubuntu-apache-php