-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
79f9e1c
commit 7f10a84
Showing
3 changed files
with
70 additions
and
10 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
FROM php:8.2-cli | ||
|
||
WORKDIR /var/www/html | ||
|
||
RUN apt-get update && apt-get install -y \ | ||
curl \ | ||
libpng-dev \ | ||
libjpeg-dev \ | ||
libfreetype6-dev \ | ||
libzip-dev \ | ||
zip \ | ||
unzip \ | ||
nodejs \ | ||
npm | ||
|
||
RUN docker-php-ext-configure gd --with-freetype --with-jpeg \ | ||
&& docker-php-ext-install -j$(nproc) gd pdo pdo_mysql zip | ||
|
||
RUN curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer | ||
|
||
COPY composer.json composer.lock ./ | ||
|
||
RUN composer install --no-scripts --no-autoloader | ||
|
||
COPY . . | ||
|
||
RUN composer dump-autoload | ||
|
||
RUN apt-get update && apt-get install -y \ | ||
nodejs \ | ||
npm | ||
|
||
RUN npm install | ||
|
||
RUN php artisan config:clear | ||
|
||
EXPOSE 9000 | ||
|
||
CMD php artisan serve --host=0.0.0.0 --port=9000 | ||
|
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
version: '3.8' | ||
|
||
services: | ||
application: | ||
restart: always | ||
build: | ||
context: . | ||
dockerfile: Dockerfile | ||
ports: | ||
- "9000:9000" | ||
depends_on: | ||
- mysql | ||
|
||
mysql: | ||
image: mysql:latest | ||
environment: | ||
MYSQL_DATABASE: LaravelInertiaVueSpa.Database_2024! | ||
MYSQL_ROOT_PASSWORD: LaravelInertiaVueSpa.Password_2024! | ||
ports: | ||
- "3307:3307" |