Public | Automated Build

Last pushed: 24 days ago
Short Description
PHP-FPM image for development purpose
Full Description

Getting started

This image is primarily intended for development purpose, as a development server.

Create your own Dockerfile like this:

FROM mrjoops/php-fpm:latest

ARG _GID
ARG _UID

RUN addgroup -g ${_GID} dockergroup \
 && adduser -G dockergroup -u ${_UID} -D dockeruser

USER dockeruser:dockergroup

VOLUME /home/dockeruser/.composer

Then build your image like that:

bash$ docker build --build-arg _GID=${id -g} --build-arg _UID=${id -u} .

Now when you'll run it, PHP-FPM will run under your own GID and UID. Say farewell to ownership headache!

Known issues

  • Only work on Unix variants
  • Only work with non-system users
Docker Pull Command
Owner
mrjoops
Source Repository

Comments (0)