simple docker image for laravel 8 build from ubuntu 18 with php 7.4
1.5K
create a Dockerfile
FROM sufiyanpk/laravel-8:latest
WORKDIR /app/
#COPY . .
RUN composer create-project --prefer-dist laravel/laravel /app "8.2.*"
RUN composer install
CMD php artisan serve --host=0.0.0.0 --port=8000
EXPOSE 8000
then
build image
docker build -t laravel8 .
and run
docker run -p 8000:8000 laravel8
Content type
Image
Digest
Size
151.2 MB
Last updated
over 5 years ago
docker pull sufiyanpk/laravel-8