Skip to content

BoonWeb/laravel-base

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

GitHub Docker Image Version (latest semver)

laravel-base

Base image for production ready laravel projects.

This image contains PHP and NGINX already configured to serve a laravel application from /app folder.

Build image

export CONTAINER_IMAGE=boonweb/laravel-base
export BUILD_VERSION=1.0.4
export CI_COMMIT_SHORT_SHA=d3ed58b0fe

DOCKER_BUILDKIT=1 \
docker build \
    --no-cache \
    --pull \
    --build-arg BUILD_DATE=$(date -u +'%Y-%m-%dT%H:%M:%SZ') \
    --build-arg BUILD_VERSION=${BUILD_VERSION} \
    --build-arg VCS_REF=${CI_COMMIT_SHORT_SHA} \
    --tag ${CONTAINER_IMAGE}:${BUILD_VERSION} \
    --tag ${CONTAINER_IMAGE}:latest \
    --file "Dockerfile" .
docker login -u boonweb
# > enter access token
docker push ${CONTAINER_IMAGE}:${BUILD_VERSION}
docker push ${CONTAINER_IMAGE}:latest

How to use in your own project

See examples/ folder to get an idea on how to use this base image.

TODO

  • build for multiple platforms/architectures: --platform linux/amd64,linux/arm64 with buildx

About

PHP 8.1 Base image for laravel projects

Resources

License

Stars

Watchers

Forks

Packages

No packages published