todo/PHP.Dockerfile

15 lines
325 B
Docker
Raw Normal View History

2022-05-02 10:51:32 +00:00
FROM php:7.4-cli
2022-05-02 10:14:58 +00:00
RUN apt-get update
RUN apt-get install -y git zip
RUN docker-php-ext-install pdo pdo_mysql
2022-05-02 10:44:29 +00:00
RUN mv "$PHP_INI_DIR/php.ini-development" "$PHP_INI_DIR/php.ini"
2022-05-02 10:14:58 +00:00
# Composer
2022-05-02 10:51:32 +00:00
COPY --from=composer:latest /usr/bin/composer /usr/local/bin/composer
WORKDIR /todo
CMD [ "php", "artisan","serve" ,"--host","0.0.0.0"]