使用 laravel 帆檔案構建一個 laravel 專案。正如 docker-compose.yml 檔案中提到的,它提到了dockerfile: Dockerfile。但是它不在根檔案夾中,那么它在哪里呢?
# For more information: https://laravel.com/docs/sail
version: '3'
services:
laravel.test:
build:
context: ./vendor/laravel/sail/runtimes/8.1
**dockerfile: Dockerfile**
args:
WWWGROUP: '${WWWGROUP}'
image: sail-8.1/app
extra_hosts:
- 'host.docker.internal:host-gateway'
ports:
- '${APP_PORT:-80}:80'
environment:
WWWUSER: '${WWWUSER}'
LARAVEL_SAIL: 1
XDEBUG_MODE: '${SAIL_XDEBUG_MODE:-off}'
XDEBUG_CONFIG: '${SAIL_XDEBUG_CONFIG:-client_host=host.docker.internal}'
volumes:
- '.:/var/www/html'
networks:
- sail
depends_on:
- mysql
- redis
- meilisearch
- selenium
uj5u.com熱心網友回復:
它位于以下路徑context:./vendor/laravel/sail/runtimes/8.1/Dockerfile
參見:https : //github.com/laravel/sail/blob/1.x/runtimes/8.1/Dockerfile
轉載請註明出處,本文鏈接:https://www.uj5u.com/qukuanlian/420995.html
標籤:
