Skip to content

Instantly share code, notes, and snippets.

@brennen
Created May 10, 2019 23:51
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save brennen/c08e63b702f0acb295ee0ccbbfea5cc5 to your computer and use it in GitHub Desktop.
Save brennen/c08e63b702f0acb295ee0ccbbfea5cc5 to your computer and use it in GitHub Desktop.
FROM docker-registry.wikimedia.org/dev/stretch-php72-apache2
RUN groupadd -o -g "65533" -r "somebody" && useradd -o -m -d "/home/somebody" -r -g "somebody" -u "65533" "somebody" && mkdir -p "/var/www/html" && chown "65533":"65533" "/var/www/html"
COPY --from=composer:latest /usr/bin/composer /usr/bin/composer
WORKDIR /var/www/html/
COPY --chown=65533:65533 [".", "."]
USER somebody
RUN composer install
USER root
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment