Sign inSign up

xbeas/lamp_server

By xbeas

Updated over 5 years ago

Image
0

907

xbeas/lamp_server repository overview

You have to start the apache2 and MySQL manually.

service apache2 start

Dockerfile:
FROM ubuntu:18.04

ENV DEBIAN_FRONTEND noninteractive
ENV USER root

# Installs Apache and PHP
RUN apt-get update && \
    apt-get install -y apache2 && \
    apt-get install -y php libapache2-mod-php php-mysql

# Installs MySQL and configures it 
RUN apt-get install -y mysql-server && \
    service mysql restart && \
    mysqladmin -u root password pass

RUN echo "<?php echo "Hello World"; ?>" | cat > /var/www/html/index.php

EXPOSE 80

Tag summary

Content type

Image

Digest

Size

138.1 MB

Last updated

over 5 years ago

docker pull xbeas/lamp_server