mirror of
https://github.com/supanadit/todo.git
synced 2024-11-24 19:26:22 +00:00
15 lines
325 B
Docker
15 lines
325 B
Docker
FROM php:7.4-cli
|
|
|
|
RUN apt-get update
|
|
|
|
RUN apt-get install -y git zip
|
|
|
|
RUN docker-php-ext-install pdo pdo_mysql
|
|
|
|
RUN mv "$PHP_INI_DIR/php.ini-development" "$PHP_INI_DIR/php.ini"
|
|
|
|
# Composer
|
|
COPY --from=composer:latest /usr/bin/composer /usr/local/bin/composer
|
|
|
|
WORKDIR /todo
|
|
CMD [ "php", "artisan","serve" ,"--host","0.0.0.0"] |