curl -s https://laravel.build/larademo | bash
FROM bref/php-80-fpm
COPY . /var/task
CMD [ "public/index.php" ]
service: laravel
provider:
name: aws
# The AWS region in which to deploy (us-east-1 is the default)
region: {opt:region, us-east-1}
# The stage of the application, e.g. dev, production, staging… ('dev' is the default)
stage: dev
runtime: provided.al2
ecr:
images:
laravel:
path: ./
package:
# Directories to exclude from deployment
exclude:
- node_modules/**
- public/storage
- resources/assets/**
- storage/**
- tests/**
functions:
# This function runs the Laravel website/API
web:
image:
name: laravel
events:
- httpApi: '*'