feat: add Dockerfile for Laravel
This commit is contained in:
17
plataforma-tutorias/Dockerfile
Normal file
17
plataforma-tutorias/Dockerfile
Normal file
@@ -0,0 +1,17 @@
|
|||||||
|
FROM php:8.2-cli
|
||||||
|
|
||||||
|
WORKDIR /app
|
||||||
|
|
||||||
|
RUN apt-get update && apt-get install -y \
|
||||||
|
git curl zip unzip libzip-dev \
|
||||||
|
&& docker-php-ext-install zip pdo pdo_mysql
|
||||||
|
|
||||||
|
COPY --from=composer:latest /usr/bin/composer /usr/bin/composer
|
||||||
|
|
||||||
|
COPY . .
|
||||||
|
|
||||||
|
RUN composer install --no-dev --optimize-autoloader
|
||||||
|
|
||||||
|
EXPOSE 10000
|
||||||
|
|
||||||
|
CMD php artisan serve --host=0.0.0.0 --port=10000
|
||||||
Reference in New Issue
Block a user