Skip to content

Instantly share code, notes, and snippets.

@PurpleBooth
Created April 12, 2019 12:45
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save PurpleBooth/35de36ac537cface4b61009614f5870f to your computer and use it in GitHub Desktop.
Save PurpleBooth/35de36ac537cface4b61009614f5870f to your computer and use it in GitHub Desktop.
Basic Example
FROM php:7-apache
RUN sed -i 's/80/${PORT}/g' /etc/apache2/sites-available/000-default.conf /etc/apache2/ports.conf
RUN mv "$PHP_INI_DIR/php.ini-production" "$PHP_INI_DIR/php.ini"
COPY . /var/www/html
RUN chown -R www-data:www-data /var/www/html
<?php
echo "Hello, world!\n\n";
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment