This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Use the official Debian 10 base image | |
FROM debian:10 | |
# Set environment variables | |
ENV DEBIAN_FRONTEND=noninteractive | |
RUN apt-get update && \ | |
apt-get install -y wget curl tar unzip | |
RUN apt -y install lsb-release apt-transport-https ca-certificates | |
RUN wget -O /etc/apt/trusted.gpg.d/php.gpg https://packages.sury.org/php/apt.gpg |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
class Greeter { | |
private $greeting; | |
public function __construct() { | |
$this->greeting = 'Hello'; | |
} | |
public function greet( $subject = '' ) { | |
return $this->greeting . ' ' . $subject . '!' . PHP_EOL; |