Sign inSign up

sufiyanpk/laravel-8

By sufiyanpk

Updated over 5 years ago

simple docker image for laravel 8 build from ubuntu 18 with php 7.4

Image
0

1.5K

sufiyanpk/laravel-8 repository overview

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

Tag summary

Content type

Image

Digest

Size

151.2 MB

Last updated

over 5 years ago

docker pull sufiyanpk/laravel-8