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
FROM php:7.4.15 | |
RUN apt-get -y update && apt-get -y upgrade | |
RUN apt-get -y install git libzip-dev zip | |
RUN docker-php-ext-configure zip | |
RUN docker-php-ext-install zip | |
RUN php -r "readfile('https://getcomposer.org/installer');" > composer-setup.php && php composer-setup.php && php -r "unlink('composer-setup.php');" && mv composer.phar /usr/local/bin/composer | |
WORKDIR /app | |
COPY . . | |
RUN composer install | |
CMD ["php", "run.php"] |
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 | |
declare(strict_types=1); | |
namespace Entity\Id; | |
use Ramsey\Uuid\Exception\InvalidUuidStringException; | |
use Ramsey\Uuid\Uuid; | |
use Entity\Id\Exception\InvalidIdException; |