openrat-cms

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs

commit a4bdb844390664f6bca5158a8626d8bfd5186aa3
parent 6225d7274197375f88e60fdcf4a5c9ff3a0f9e6e
Author: Jan Dankert <devnull@localhost>
Date:   Fri, 25 May 2018 01:49:48 +0200

Dockerfile auf Basis von Debian Stretch

Diffstat:
Dockerfile | 29+++++++++++++++++++++++++++++
1 file changed, 29 insertions(+), 0 deletions(-)

diff --git a/Dockerfile b/Dockerfile @@ -0,0 +1,29 @@ +#FROM php:7.0-apache +FROM debian:stretch-slim + +# File Author / Maintainer +MAINTAINER dankert + +RUN apt-get update \ + && apt-get install -y \ + apache2 \ + libapache2-mod-php7.0 \ + php-xml \ + php-mysql \ + && apt-get clean + +# logs should go to stdout / stderr +RUN \ + ln -sfT /dev/stderr "/var/log/apache2/error.log" \ + && ln -sfT /dev/stdout "/var/log/apache2/access.log" + +# Remove default index.html +RUN rm -r /var/www/html/* + +COPY . /var/www/html/ + +EXPOSE 80 + +WORKDIR /var/www/html + +CMD apachectl -D FOREGROUND