Add core Laravel files and Docker config
This commit is contained in:
parent
b6a361d239
commit
b74b487b6b
1 changed files with 14 additions and 0 deletions
14
Dockerfile
Normal file
14
Dockerfile
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
FROM php:8.2-cli
|
||||
|
||||
RUN apt-get update && apt-get install -y git unzip libzip-dev default-mysql-client
|
||||
RUN docker-php-ext-install pdo_mysql zip
|
||||
|
||||
COPY --from=composer:latest /usr/bin/composer /usr/bin/composer
|
||||
|
||||
WORKDIR /app
|
||||
COPY . .
|
||||
|
||||
# Install dependencies if composer.json exists
|
||||
RUN composer install --no-interaction --prefer-dist --optimize-autoloader || true
|
||||
|
||||
CMD php artisan serve --host=0.0.0.0 --port=8000
|
||||
Loading…
Add table
Reference in a new issue