package-template/docker/Dockerfile

16 lines
284 B
Docker
Raw Permalink Normal View History

2024-07-29 17:45:50 +02:00
FROM php:8.3-fpm-alpine
RUN apk add --no-cache make
COPY --from=composer:latest /usr/bin/composer /usr/bin/composer
ARG PUID=1000
ARG PGID=1000
RUN addgroup -g ${PGID} www && adduser -u ${PUID} -G www -s /bin/sh -D www
COPY --chown=www:www ./ /var/www
USER www
WORKDIR /var/www