build: add a PHP environment
This commit is contained in:
parent
4e2e0d6f0c
commit
6c967e7fa4
9 changed files with 2937 additions and 0 deletions
20
php/Dockerfile
Normal file
20
php/Dockerfile
Normal file
|
@ -0,0 +1,20 @@
|
|||
FROM php:8.1-cli-bullseye
|
||||
|
||||
ENV PATH=$PATH:/app/vendor/bin
|
||||
|
||||
COPY --from=composer /usr/bin/composer /usr/bin/composer
|
||||
|
||||
WORKDIR /app
|
||||
|
||||
RUN apt-get update -yqq \
|
||||
&& apt-get install -yqq git unzip \
|
||||
&& adduser --disabled-password app \
|
||||
&& chown app:app -R /app
|
||||
|
||||
USER app
|
||||
|
||||
COPY --chown=app:app composer.* ./
|
||||
|
||||
RUN composer install
|
||||
|
||||
COPY --chown=app:app . .
|
Loading…
Add table
Add a link
Reference in a new issue