Dockerfile for Laravel deployment
I don't much about Docker, so I can't comment much on that.
I've read through the file and the steps seem to make sense.
I can comment on some details.

The comment here doesn't match what the code does,
because the find command will only delete files like .gitignore and .gitattributes, but the .git directory itself with the full history remains:


# Copy sources without version control
RUN git clone --branch=v2.0.1 \
    https://my_name:my_key@bitbucket.org/app/repository.git . \
    &amp;&amp; find . -name ".git*" -type f -delete



If you don't need the version control history,
perhaps you can use a zip file release instead of cloning.
Or, you might want to change the find command to delete the .git directory too,
by dropping the -type f condition.

The sed commands here duplicate the variable names,
seem overcomplicated to use \S* instead of simply .*,
can be more strict to not perform the replacement in comment lines,
and can be combined into a single command:


RUN sed -i 's/APP_ENV=\S*/APP_ENV=production/' .env &amp;&amp; \
    sed -i 's/APP_DEBUG=\S*/APP_DEBUG=false/' .env &amp;&amp;



Like this:

RUN sed -ie '/^APP_ENV=/s/=.*/=production/' -e '/^APP_DEBUG=/s/=.*/=false/' .env