mirror of
https://github.com/InvoiceShelf/InvoiceShelf.git
synced 2026-04-07 13:41:23 +00:00
🚢 Simplified docker builds (#456)
* Simplify docker builds * Ignore docker and frontend scripts from PHP related checks * Update docker development setup
This commit is contained in:
committed by
GitHub
parent
3ed91545d1
commit
23f6b1877f
28
docker/development/Dockerfile
Normal file
28
docker/development/Dockerfile
Normal file
@@ -0,0 +1,28 @@
|
||||
FROM --platform=$BUILDPLATFORM node AS static_builder
|
||||
WORKDIR /var/www/html
|
||||
COPY . /var/www/html
|
||||
RUN yarn && yarn build
|
||||
|
||||
FROM serversideup/php:8-fpm-alpine AS base
|
||||
USER root
|
||||
RUN install-php-extensions exif
|
||||
RUN install-php-extensions pgsql
|
||||
RUN install-php-extensions sqlite3
|
||||
RUN install-php-extensions imagick
|
||||
RUN install-php-extensions mbstring
|
||||
RUN install-php-extensions gd
|
||||
RUN install-php-extensions xml
|
||||
RUN install-php-extensions zip
|
||||
RUN install-php-extensions redis
|
||||
RUN install-php-extensions bcmath
|
||||
RUN install-php-extensions intl
|
||||
RUN install-php-extensions curl
|
||||
|
||||
FROM base AS development
|
||||
ARG UID
|
||||
ARG GID
|
||||
|
||||
USER root
|
||||
RUN docker-php-serversideup-set-id www-data $UID:$GID
|
||||
USER www-data
|
||||
|
||||
Reference in New Issue
Block a user